mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-20 13:04:18 +00:00
contact controller model table
This commit is contained in:
@@ -32,6 +32,15 @@ class ContactController extends Controller
|
||||
{
|
||||
//
|
||||
}
|
||||
public function searchContact($id)
|
||||
{
|
||||
|
||||
|
||||
|
||||
$matchedTerm = Breed::where('ff_id', 'LIKE', $id . '%')->get();
|
||||
return response()->json($matchedTerm);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Store a newly created resource in storage.
|
||||
@@ -42,7 +51,7 @@ class ContactController extends Controller
|
||||
public function store(Request $request)
|
||||
{
|
||||
$contact = Contact::create($request->all());
|
||||
|
||||
// $contact->created=true;
|
||||
return response()->json($contact, 201);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user