Views
7 months ago

laravel_tutorial

Laravel Step 2: After

Laravel Step 2: After successful execution, you will receive the following output: Step 3: Copy the following code in a file at app/Http/Controllers/SessionController.php. app/Http/Controllers/SessionController.php

Laravel public function storeSessionData(Request $request){ $request->session()->put('my_name','Virat Gandhi'); echo "Data has been added to session"; } public function deleteSessionData(Request $request){ $request->session()->forget('my_name'); echo "Data has been removed from session."; } } Step 4: Add the following lines at app/Http/routes.php file. app/Http/routes.php Route::get('session/get','SessionController@accessSessionData'); Route::get('session/set','SessionController@storeSessionData'); Route::get('session/remove','SessionController@deleteSessionData'); Step 5: Visit the following URL to set data in session. http://localhost:8000/session/set Step 6: The output will appear as shown in the following image. Step 7: Visit the following URL to get data from session. http://localhost:8000/session/get Step 8: The output will appear as shown in the following image. 91

Up-to-Date 102-400 Exam BrainDumps for Guaranteed Success
A Middleware Model in Alloy A Middleware Model in Alloy - IRIT
Real 200-550 Exam BrainDumps
Milind Bhandarkar (milindb@yahoo-inc.com) - IPDPS
vocational qualification in crafts and design, artisan 2009
Laravel Starter - PHP User Group (Myanmar)
Catalogue supplement ECHO 2013 - Ingenious Locking Technology ...
1835/1935/1945 Series Brochure - Furuno USA
Proceedings of the meeting - Department of Physics - University of ...
Beginning PHP and MySQL 5. From Novice to Professional(2006)
0317 0045 REV A E-Sea Sound MP 35.indd
The Zend PHP Certification Practice Test Book