Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

->with() in laravel

Route::get('/', function () {
   $articleName = ‘Article 1’;
   return view('gfg')->with('articleName', $articleName)->
                with('articlePublished', 'On GeeksforGeeks');
});
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #laravel
ADD COMMENT
Topic
Name
3+7 =