- production (real Production Workflow)
- hotfixes (branchs That are quick fixes on production)
- staging (blue/green server-- duplicate our production enveoment)
- master(main)
- features
- qa (preform test beform marging into staging)
git checkout -b branchName
git checkout -b feature/1-readme-git-code
- First Checkout that branch where wana merge git merge master git push
git tag "V1.0.0" git push --tags
- php artisan make:controller ControllerName
- php artisan make:component ComponentName
- this will create two file one is on views/components
- and the other is on app/Views/components
Middleware provide a convenient mechanism for inspecting and filtering HTTP requests entering your application.
- Global Middleware (Check All Request)
- Group Middleware (Check Request For Particular Group )
- Route Middleware (Check Request For Particuler Route)
php artisan make:middleware MiddlewareName
- this will create a file one is on app/Http/Middleware/MiddlewareName.php
For Submiting a Form in Laravel need A "_token" which will get From the {{@csrf_field()}} function.
Laravel's database query builder provides a convenient, fluent interface to creating and running database queries. It can be used to perform most database operations in your application and works perfectly with all of Laravel's supported database systems.
Laravel includes Eloquent, an object-relational mapper (ORM) that makes it enjoyable to interact with your database. When using Eloquent, each database table has a corresponding "Model" that is used to interact with that table. In addition to retrieving records from the database table, Eloquent models allow you to insert, update, and delete records from the table as well.