mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-09-01 19:03:58 +00:00
large commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Companies;
|
||||
|
||||
|
||||
use App\Models\Company;
|
||||
use App\Http\Resources\Company as CompanyResource;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class CompanyMarkingController
|
||||
{
|
||||
|
||||
public function find(Request $request){
|
||||
|
||||
$marking = $request->input('marking');
|
||||
$company = Company::where('marking', $marking)->first();
|
||||
|
||||
return new CompanyResource($company);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user