contact controller model table

This commit is contained in:
Asif
2018-05-07 14:38:40 +08:00
parent 1e923a3368
commit d31258cc82
4 changed files with 93 additions and 8 deletions
+10 -1
View File
@@ -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);
}