Code: Select all
Route::get('/edit/{id}' , [
'uses' => 'adminController@editArticle',
'as' => 'editArticle'
]);
Code: Select all
public function editArticle(Request $request) {
/* Get the last part of the URI */
$explodedUrl = explode('/', $request->url());
$urlSlug = array_pop($explodedUrl);
$article = DB::table('admin')->where('slug', 'LIKE', '%' . $urlSlug . '%')->first();
return $article;
// $tagsArray = $this->getTags();
return view('pages.editArticle')->with('article', $article)->with('tags' , $tagsArray);
}
Code: Select all
http://localhost:8080/laravel-blog-production/edit/animated-button-border-using-css-background-and-keyframes
http://imgur.com/a/tynu6
Code: Select all
The Response content must be a string or object implementing __toString(), "object" given.
Code: Select all
animated-button-border-using-css-background-and-keyframes
I am not sure what is causing this bug and how should i go about resolving this ?
can somebody help me out please.
Thank you.
Gautam.