Create .htaccess in root folder and write these line For production server it is recommended that you point your domain directly to the public folder
Category : PHP
80 posts
Introduction Over the past few years, Docker has become a frequently used solution for deploying applications thanks to how it simplifies running and deploying applications in ephemeral containers. When using a LEMP application stack, for example, with PHP, Nginx, MySQL and the Laravel framework, Docker can significantly streamline the setup process. Docker Compose has further …
How to Install and Set Up Laravel 7 on Ubuntu 20.04 Laravel is a prominent member of a new generation of web frameworks. It is an open-source PHP framework and is getting more attention from developers. It is intended for the development of web applications following the model–view–controller architectural pattern. So, how to install and set …
Laravel one of the great PHP framework to build web applications released the new version which is Laravel 7 on March 3rd, 2020. They usually release the major versions every 6 months. Here we discuss the steps to install Laravel 7 on Windows 10. If you are interested to know the version releases of Laravel, …
The application structure in Laravel is basically the structure of folders, sub-folders and files included in a project. Once we create a project in Laravel, we get an overview of the application structure as shown in the image here. The snapshot shown here refers to the root folder of Laravel namely laravel-project. It includes various …
API authentication can be tricky. OAuth 2 is the reigning ruler of the various standards that you might consider, but it’s complex and difficult to implement—even with the great packages available (League and Luca among them). We’re talking many routes, dozens of migrations, complicated configuration, and much more—even with amazing packages trying to simplify the …
Introduction Artisan is the name of the command-line interface included with Laravel. It provides a number of helpful commands for your use while developing your application. It is driven by the powerful Symfony Console component. Usage Listing All Available Commands To view a list of all available Artisan commands, you may use the list command: …
The most basic Laravel routes accept a URI and a Closure, providing a very simple and expressive method of defining routes: The Default Route Files All Laravel routes are defined in your route files, which are located in the routes directory. These files are automatically loaded by the framework. The routes/web.php file defines routes that …
Basic Routing You will define most of the routes for your application in the app/Http/routes.php file, which is loaded by the App\Providers\RouteServiceProvider class. The most basic Laravel routes simply accept a URI and a Closure: Basic GET Route Other Basic Routes Registering A Route For Multiple Verbs Registering A Route That Responds To Any HTTP …
Laravel Queues allow you to delay a time-consuming task until a later time. By delaying the time-consuming task, you can improve the performance of the Laravel application significantly. In this post, we will discuss Laravel Queues which is one of the best features of the Laravel framework. So let’s dive in. Laravel Queues Laravel Queues …