7 months ago


Laravel use Event; class

Laravel use Event; class CreateStudentController extends Controller { public function insertform(){ return view('stud_add'); } public function insert(Request $request){ $name = $request->input('stud_name'); DB::insert('insert into student (name) values(?)',[$name]); echo "Record inserted successfully."; echo 'Click Here to go back.'; //firing an event Event::fire(new StudentAdded($name)); } } Step 4: Create an event called StudentAdded by executing the following command. php artisan make:event StudentAdded Step 5: After successful execution, you will receive the following output: 116

Laravel Step 6: The above command will create an event file at App\Events\StudentAdded.php. Copy the following code in that file. App\Events\StudentAdded.php

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 ( - IPDPS
vocational qualification in crafts and design, artisan 2009
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