Laravel School

Laravel School is mainly focused on Laravel, PHP, JavaScript and modern web related tutorial. All tutorials will try to cover from scratch to pro level.
Image for An Introduction to Laravel Policy

An Introduction to Laravel Policy

If you heard about Laravel Policy and still not yet use that, this introduction to Laravel Policy post is for you then. In this tutorial, I will write a real-life tutorial that, how to use Laravel Pol

3 min read Read More
Image for Deep Diving into Laravel Subquery

Deep Diving into Laravel Subquery

In this tutorial, we will learn how to use Laravel Subquery in real life example. I have inspired to write about this article by reading [Jonathan Reinink](https://twitter.com/reinink) [post](https://

4 min read Read More
Image for The Standard Approach to Validate Laravel Form Request

The Standard Approach to Validate Laravel Form Request

Laravel is one of the best choices for PHP developer since it gives so much flexibility to the developer. However, the form validation is one of the crucial parts for web-based application and API. La

2 min read Read More
Image for How to use Laravel Transform

How to use Laravel Transform

You will get an example in Laravel documentation that how to use **transform()** in Laravel. You might see example code like that- ``` php $collection = collect([1, 2, 3, 4, 5]); $collection->t

1 min read Read More
Image for Laravel Testing: Starting with Laravel feature Testing

Laravel Testing: Starting with Laravel feature Testing

Although, there is a lot of controversy for testing in development, however, I would prefer to do follow testing. The advantage of testing laravel application is better than without testing. So, I wil

1 min read Read More
Image for How to upload laravel project in cPanel

How to upload laravel project in cPanel

If you use cPanel to host your [Laravel](https://www.laravel.com) application, you might be confusing at first. It's because of the directory structure of Laravel and cPanel are bit different. Today,

1 min read Read More
Image for Laravel PHP artisan Route List command

Laravel PHP artisan Route List command

Ideally, the ```php artisan route:list``` will display display the domain, method, URI, name, action and middleware for the routes it includes in the generated table. Now, what if I want to show a

2 min read Read More
Image for Let's do Laravel code refactoring

Let's do Laravel code refactoring

Sometimes, we have some code that we can do refactor more. In this post I will show you how to do refactor a traditional code and make it more optimized. Let's imagine that, as an author, you have

1 min read Read More

Laravel delete files from Public Folder

If you want to delete a file from public folder in Laravel, surely you can use PHP's `unlink()` method to remove that. Besides `unlink()`, you can remove file by laravel way, by using the `File::d

1 min read Read More
Image for Some necessary GIT Command for every developer

Some necessary GIT Command for every developer

I am sure, you are using **Git** in every single day as a developer. I have listed down git command that I use in my daily life. If you are git lover, the following commands should be your parts

3 min read Read More