farhan048
1 year ago
11 changed files with 270 additions and 137 deletions
@ -0,0 +1,85 @@
|
||||
<?php |
||||
|
||||
namespace App\Http\Controllers; |
||||
|
||||
use App\Models\Company; |
||||
use Illuminate\Http\Request; |
||||
|
||||
class CompanyController extends Controller |
||||
{ |
||||
/** |
||||
* Display a listing of the resource. |
||||
* |
||||
* @return \Illuminate\Http\Response |
||||
*/ |
||||
public function index() |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Show the form for creating a new resource. |
||||
* |
||||
* @return \Illuminate\Http\Response |
||||
*/ |
||||
public function create() |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Store a newly created resource in storage. |
||||
* |
||||
* @param \Illuminate\Http\Request $request |
||||
* @return \Illuminate\Http\Response |
||||
*/ |
||||
public function store(Request $request) |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Display the specified resource. |
||||
* |
||||
* @param \App\Company $company |
||||
* @return \Illuminate\Http\Response |
||||
*/ |
||||
public function show(Company $company) |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Show the form for editing the specified resource. |
||||
* |
||||
* @param \App\Company $company |
||||
* @return \Illuminate\Http\Response |
||||
*/ |
||||
public function edit(Company $company) |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Update the specified resource in storage. |
||||
* |
||||
* @param \Illuminate\Http\Request $request |
||||
* @param \App\Company $company |
||||
* @return \Illuminate\Http\Response |
||||
*/ |
||||
public function update(Request $request, Company $company) |
||||
{ |
||||
// |
||||
} |
||||
|
||||
/** |
||||
* Remove the specified resource from storage. |
||||
* |
||||
* @param \App\Company $company |
||||
* @return \Illuminate\Http\Response |
||||
*/ |
||||
public function destroy(Company $company) |
||||
{ |
||||
// |
||||
} |
||||
} |
@ -0,0 +1,37 @@
|
||||
<?php |
||||
|
||||
namespace App\Models; |
||||
|
||||
use Illuminate\Database\Eloquent\Model; |
||||
|
||||
class Company extends Model |
||||
{ |
||||
protected $table = 'm_divisi'; |
||||
|
||||
const CREATED_AT = 'created_at'; |
||||
const UPDATED_AT = 'updated_at'; |
||||
|
||||
protected $fillable = [ |
||||
"registration_no", |
||||
"company_name", |
||||
"address", |
||||
"phone_no", |
||||
"email", |
||||
"description", |
||||
"logo_login", |
||||
"logo_header", |
||||
"favicon_image", |
||||
"login_instruction", |
||||
"about", |
||||
"html_title", |
||||
"app_name", |
||||
"base_url", |
||||
"is_active", |
||||
"template_id", |
||||
'created_at', |
||||
'created_by', |
||||
'updated_at', |
||||
'updated_by', |
||||
'company_id' |
||||
]; |
||||
} |
Loading…
Reference in new issue