Category : Laravel

27 posts

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 …
Here, i will explain to create seeder for insert multiple records on database table in laravel 5.7 app. in this example you will show how to use seeder and how you can run specific seeder in laravel 5.7 project. We should know what is database seeder in laravel and why we should use before start …
Migrations are like version control for your database, allowing your team to modify and share the application’s database schema. Migrations are typically paired with Laravel’s schema builder to build your application’s database schema. If you have ever had to tell a teammate to manually add a column to their local database schema, you’ve faced the …
ntroduction Laravel migrations provide mechanisms for creating and modifying database tables. Migrations also allow you to roll back the most recent changes that you made to a database. Generate Migrations To create a migration, use the make:migration Artisan command: When you create a migration file, Laravel stores it in /database/migrations directory. Each migration file name …
This guide will help all PHP developers who are looking to try their hands with Laravel on MAC OS. Laravel, has a couple of dependencies and I will not get into all of that, I wanted this installation and setup process to be less complex for any developer reading this and for that have already …
1. Clone GitHub repo for this project locally If the project is hosted on github, we can use git on your local computer to clone it from github onto your local computer. Note: Make sure you have git installed locally on your computer first. Find a location on your computer where you want to store …
PAGE TOP
error

Enjoy this blog? Please spread the word :)

RSS
Follow by Email