I have written a member function like ::
public function details($article_seo){
$articleDet = Articles::where(function($query) {
$query->where('article-seo', '=', $article_seo);
})
->get();
dd($articleDet);
}
and have used these at the beginning of laravel controller::
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\articles; /** this is the eloquent model **/
The problem is ::
when ever i try to pass the $article_seo that I am receiving from the url data, it gives me an eror of ::: Undefined variable: article_seo
Being new to Laravel i have checked out lot of ways but unable to find one.Please help!!!!