Tag : Artisan Command


Laravel 5 - Example of Database Seeder with insert sample data

We should know what is database seeder in laravel and why we should use before start example of database seeding. Laravel provides a tool to add sample or dummy data to our databases automatically. that is call it database seeding. Laravel database seeder through we can add simply testing data on our database table. Database seed is extremely useful because testing with various data allows you to likely detect bugs you otherwise would have overlooked. We have to simple make one time seeder with some dummy data, that way we can simply reuse when you deploy project first time. We can make seede.....

By Hardik Savani | February 23, 2017 | | 3281 Viewer | Category : Laravel
READ MORE

How to execute artisan commands from route or controller in Laravel ?

Sometimes we require to run php artisan command from route or controller file in out Laravel Application, However we can do it using Artisan facade. Laravel Artisan facade that way we can easily run all artisan command with argument. Artisan facade have two method call() and queue(), queue() through we can simply make process in queue like email sending etc. So let's see simple example with route. In this example we run "php artisan migrate" command using artisan facade. Here i bellow example you can learn how you can run artisan commands from route. <strong>Example:</strong> <pre class="pre.....

By Hardik Savani | February 12, 2017 | | 1323 Viewer | Category : Laravel
READ MORE

How to create authentication(login and registration) in Laravel 5.2?

We always wanted to do authentication system in your project, i mean sign-in, sign-out, sign-up and forgot password for our project. If you work on core PHP, or any PHP framework then it will take long time and large amount code as well to make auth module for your application. But Laravel 5.2 provide simple way to create authentication module in your laravel application. Laravel 5.2 provide several php artisan command, that command through we can generate authentication module easily. Laravel 5.2 also will create new auth route and blade file, that way you can also customize your auth modul.....

By Hardik Savani | July 28, 2016 | | 4214 Viewer | Category : Laravel
READ MORE

Laravel 5 create custom artisan command with example

It's better if we make our own artisan command for like project setup, create new admin user etc in our laravel application. If we create custom command then we can make project setup like create one admin user, run migration, run seeder and etc. In this post i give you example, how to create console commands in laravel project. <div class="text-center"><img src="/upload/Laravel-5-Custom-Artisan-Command.png" style="border:2px solid" class="img-responsive"></div> In this example will create custom command for create new admin user. This custom command will ask your name, email and password. I.....

By Hardik Savani | May 23, 2016 | | 3210 Viewer | Category : Laravel
READ MORE

    How to get gravatar image from email using Jquery?

    How to get gravatar image from email using Jquery?

    Open Post

    How to get keys name from array using array helper in PHP Laravel ?

    How to get keys name from array using array helper in PHP Laravel ?

    Open Post

    Solved - Access Not Configured. Google+ API (truncated...) on google console developer

    Solved - Access Not Configured. Google+ API (truncated...) on google console developer

    Open Post

    Jquery email autocomplete example with demo using jquery.email-autocomplete.min.js

    Jquery email autocomplete example with demo using jquery.email-autocomplete.min.js

    Open Post

    Laravel 5.3 - whereDate(), whereMonth(), whereDay() and whereYear() examples.

    Laravel 5.3 - whereDate(), whereMonth(), whereDay() and whereYear() examples.

    Open Post

    Laravel 5 - How to create custom error page with example

    Laravel 5 - How to create custom error page with example

    Open Post