In this post we are going to learn how to use resource controller using resource route in Laravel 5 application from scratch.
Laravel resource controller is pretty interesting feature to create quick CRUD application in laravel. For resource you have to do two things on laravel application. first you have to create resource route on laravel they provide insert, update, view, delete routes and second you have to create resource controller that will provide method for insert, update, view and delete.
So, in this example we will see how to create resource route and how they work.
First we hav.....
In this tutorials i gonna share with you Amazing artical, "How to install laravel in your Android Phone". this artical is very helpfull for performe a small tack for laravel on your
Android phone without open your PC or laptop.so let's start. i will explain all thins one by one. so please followed all step and you can easely install or run laravel applilcation in
your Android Phone.
<strong class="step">Step 1 : Install "Termux" Aplication from Google Play Store</strong>
Termux is provide all functionality like as terminal, which we are using in our Ubuntu OS.
then after you simple open it ap.....
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.....
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.
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.....
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.....