Laravel

PHP Laravel Tutorial

Laravel Tutorial Day 1

Learning Objectives: To understand the fundamental about PHP Laravel, Installation and Hello World Example. Install LAMP into Ubuntu Reference Website to Install Composer in Ubuntu sudo apt update sudo apt install php-cli unzip cd ~curl -sS https://getcomposer.org/installer -o composer-setup.php sudo php composer-setup.php –install-dir=/usr/local/bin –filename=composer composer Install Composer https://getcomposer.org/download/ Install Laravel https://laravel.com/docs/9.x#getting-started-on-windows Create Hello World Project […]

Laravel Tutorial Day 1 Read More »

Laravel Tutorial Day 4

Learning Objectives: Understanding the use of Controller. As it name says its Controller, so you can manage many things using this Controller. Let’s Make a Controller and see the demo also we will make Login Page and Its verification code using get and post method respectively. Command to Create Controller in Laravel:php artisan make:controller NameOfController

Laravel Tutorial Day 4 Read More »

Laravel Tutorial Day 7

Learning Objectives: Insert data into database using Model, Controller in Laravel. This day includes understanding of Edit and Delete Operations. You need the following: Model Controller View Routes Database Table Creation (direct or using Migration) Model php artisan make:model product <?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class product extends Model {     use HasFactory;

Laravel Tutorial Day 7 Read More »

Laravel Tutorial Day 8

Learning Objectives: 1) Laravel Session Management. Store value to Session, Fetch value from the session. 2) Another Important Point we will discuss is File Upload. 3) Validation Controller 1.1 Store Value to Session Route::get(‘/setsession’, function () {         session([‘loginusername’=>’Adarsh Patel’]);         echo “done”;         }); 1.2 Fetch

Laravel Tutorial Day 8 Read More »