1 month 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

Laravel Starter - PHP User Group (Myanmar)
Download C# Tutorial (PDF Version) - Tutorials Point
090-056 Exam BrainDumps are Out - Download and Prepare
IXP Manager Workshop V4 Deep Dive
CLAD Exam BrainDumps are Out - Download and Prepare
PHP 5 Recipes: A Problem-Solution Approach
PHPUnit and Drupal 8 - Bay Area Drupal Camp
Control over Analytical Method Dev Qualified Validated ... - Osisoft
Twitter Application Development For Dummies pdf
Overview of the workshop - Internet2 Middleware Initiative
JSAGA: using SAGA for uniform access to ... - Open Grid Forum