samedi 24 septembre 2016

How can I search in eloquent result

I have an Eloquent result. How can I find row with address id in my result ? Migration :

Schema::create('settings', function (Blueprint $table) {
   $table->string('id');
   $table->primary('id');
   $table->longText('content');
   $table->timestamps();
});

Controller :

return view('myview')->with('items',Model::all());

View

<input type="text" name="address" value="">
<input type="text" name="phone" value="">



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire