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.....
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.
Composer through we can get packages from git and use it in our project. But you require to install composer in your system for getting packages. You can get packages for core PHP, Laravel, codeigniter etc.
So, If you are working on ubuntu OS and you require to install composer then this post will help you quickly install composer using terminal command line in your ubuntu system.
First Open your terminal and fire bellow three commands, i listed just three command to install composer, you have to just run one by one:
<pre class="prettyprint lang-php">
curl -sS https://getcomposer.org/install.....
Today, I am going to share with you How to prevent back button after logout in PHP Laravel framework. If you observe deeply then you found this fault, When user logout after if user hitting back button from browser then it will goes on home page or existing page that he was before login. But it should redirect on Login page instead of homepage or other existing page.
But we can prevent this issue by using Laravel middleware. We will create one middleware and prevent back button history. So we have to create new middleware and use that middleware in our route.
So, I am going to do from scratc.....
Node.js is very popular in Todays for make chat system, real-time notification, real-time developing etc.
So, Today, I am going to give you very simple example of How to use MySQL Query in Node JS. If you use node.js then you can see how it is work and there are several driver for different task like redis, socket io, express etc.
But Node.js have a driver for MySQL that way we can easily connect with database and you can use select, insert, update and delete sql query.
So, in this example i going to give from scratch so if you are beginner and you haven't installed nodejs on your server th.....
When i was working on my PHP Laravel project and i clone project from git repository. I just composer install and then change storage folder permission. then i just run bellow command:
I found list files of storage folder even i didn't changes on that file. I was thinking why there are several files on git status. But i understand this is because of permissions.
I search google and other, at last i found bellow command that way we can ignore or remove or undo file permissions changes from git status. So, you can run bellow command in your repo.
<pre class="prettyprint .....
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.....
If you also find error like "laravel-elixir not found" on gulp then you can install laravel-elixir npm package manually. I also fetch this error when i was new in laravel and working with gulp first time.
We can solve laravel-elixir not found error using laravel-elixir nodejs package. So you can run just bellow command and check. First command if you run already then don't require to run.
<pre class="prettyprint lang-php">
npm install laravel-elixir
I was working on my laravel project, i found one issue that too much load my log file when i open and i want to remove that data, i mean hang my system and must need to restart my system. I thought what will issue, but i got it because in my laravel.log<strong class="path">(/storage/logs/laravel.log)</strong> file had big size of data and my text editor can't load and i want to clear that's way i can see other error.
I did search on google at last i found the solution using command, we have to just run command in out terminal or cmd and we can remove all data of log file. So let's fire bellow.....