1 month ago


Laravel } public

Laravel } 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.'; } } Step 4: Create a view file called resources/views/stud_create.php and copy the following code in that file. resources/views/stud_create.php Student Management | Add

Laravel app/Http/routes.php Route::get('insert','StudInsertController@insertform'); Route::post('create','StudInsertController@insert'); Step 6: Visit the following URL to insert record in database. http://localhost:8000/insert Step 7: The output will appear as shown in the following image. Retrieve Records After configuring the database, we can retrieve the records using the DB facade with select method. The syntax of select method is as shown in the following table. Syntax array select(string $query, array $bindings = array()) Parameters $query(string) – query to execute in database $bindings(array) – values to bind with queries Returns Description array Run a select statement against the database. Example Step 1: Execute the below command to create a controller called StudViewController. php artisan make:controller StudViewController --plain Step 2: After successful execution, you will receive the following output: 67

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
Twitter Application Development For Dummies pdf
Overview of the workshop - Internet2 Middleware Initiative
WSDL 1.1 Overview
WSDL 1.1 Overview
PHPUnit and Drupal 8 - Bay Area Drupal Camp