Author

Siddharth Shukla

Browsing

Adding Toastr Notifications to your Laravel App However you decide to include it in your project you will then need to add the location to the 2 files in the <head> tag of your master layout file like so: <script src=”//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.js”></script> <link rel=”stylesheet” type=”text/css” href=”//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.css”> Then whenever you need to redirect to a page and pass a notification you can pass the redirect a notification array like so: $notification = array( ‘message’ => ‘I am a successful message!’,…

Path [during installation path is shown]/Users/{your_username}/ .npm-global/binOpen the GUI with:sudo nano ~/.bash_profileenter your passwordPaste the copied path asexport PATH=$PATH:/Users/{your_username}/ .npm-global/binRun:vue –version export PATH=$PATH:/Users/siddharthshukla/.npm-global/bin

Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravelLiveWire Step 2: Open project in code and use vs code terminal. cd laravelLiveWire Step 3: find .env file in root directory setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4: Create Migration and Model php artisan make:migration create_posts_table <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePostsTable extends Migration { /** * Run the migrations. * * @return…

Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravelCustomRoutes Step 2: Open project in code and use vs code terminal. cd laravelCustomRoutes Step 3: Create Custom Route File Here, I will create following route file with multiple listed route. 1) User Routes: Here you have to define routes in web.php in routes folder. in that file, you have declared routes for user login. 2) Admin Routes: Here you have…