Introduction
- Cheat Sheet Level 2310 Candy Crush
- Cheat Sheet Level 703 Candy Crush Soda Saga
- Cheat Sheet Laravel Free
- Cheat Sheet Laravel Tutorial
- Laravel Cheat Sheet 2019 Pdf
- Laravel Cheat Sheet 2019
One of the great features of Laravel is its command line tool artisan. It is effectively a powerful scripting tool that contains many built in commands to help you while you create your Laravel application.
During development you may find yourself repeating a number of key commands, so we’re going to go through some of the essential ones in this article. We’re mostly focussing on artisan commands but there are a few others too that will be useful.
You can get a downloadable version of this cheatsheet by clicking here.
Cheatsheet
Laravel commands:
laravel new project-name
This will create a folder within the folder you are currently in named “project-name” and create all the necessary Laravel project files here. Depending on how your environment is set up, you should be able to navigate to http://project-name.test in your browser and see the default Laravel welcome page.
Laravel Cheat Sheet. Contribute to JesseObrien/laravel-cheatsheet development by creating an account on GitHub. Laravel Cheat Sheet 10:32:05 AM hint: keep tapping the search, it scrolls to the result Artisan // Displays help for a given.
Composer commands:
composer require vendor/package
This will update your composer.json with the necessary details of the package you are choosing to install and then install the package in your project.
composer update
This will look for the newest versions of the packages you have installed and update them. You can manually update the Laravel version in your composer.json file and run this command to update your Laravel version, just make sure there aren’t any breaking changes between versions that need to be addressed.
composer dump-autoload
This updates your vendor/composer/autoload_classmap.php file, you may need to run it if you have a new class in your project that has not yet been loaded.
Artisan commands:
php artisan list
Lists all the artisan commands, run it and have a read!
php artisan --help OR -h
Displays some basic help, add --help
or -h
after any of these commands to see the help text with all available flags and options.
php artisan key:generate
This generates a new key and adds it to your .env file. A key is automatically generated when you run laravel new project-name
but the command can be useful when cloning an existing project. This app key is mainly used for encrypting cookies.
php artisan --version OR -V
Displays your current version of Laravel, something like:
php artisan down
Puts your application into maintenance mode — visitors to the site will see a maintenance message.
php artisan up
Brings your application back out of maintenance mode.
php artisan env
Displays the current environment for your application, e.g.
php artisan route:list
Lists all the routes registered in your application, under the following headers:
php artisan serve --host=192.168.1.100 --port=80
Runs a web server that will be accessible locally, if you do not specify a --host
or a --port
the site will be accessed at your local ip on port 8000.
php artisan make:auth
Creates all that is necessary for authentication in your application. Make sure you run php artisan migrate after this command(see below), then you can navigate to /register or /login on your project to create and log in to an account.
Cheat Sheet Level 2310 Candy Crush
php artisan make:model ModelName -mcr
Creates a model class and file in your project. You can use some, all or none of the -mcr
flags when creating a new model. Run php artisan make:model -h
to see the full set of options.
These flags perform the following operations:
-m OR --migration
Creates a new database migration file for the model.
-c OR --controller
Creates a new controller file for the model.
-r OR --resource
Indicates if the generated controller should be a resource controller .
php artisan make:controller ControllerName
Creates a controller file in your project.
php artisan make:migration --table='table' 'description_of_migration'
Creates a database migration file that you can edit to add necessary table properties.
php artisan migrate
Runs any pending database migrations.
php artisan migrate:rollback
Rolls back the latest database migration (ensuring you have the necessary commands in your down()
function of the migration).
php artisan migrate:rollback --step=5
This example will roll back the last 5 migrations.
php artisan migrate:reset
Rolls back all migrations.
php artisan vendor:publish
Displays a list of vendor packages installed in your project, giving you the option to specify which you would like to copy the configuration or view files to your own project’s folders for additional configuration or customisation.
php artisan config:cache
Speed up your application for production by combining all your config options into a single file that loads quickly.
Cheat Sheet Level 703 Candy Crush Soda Saga
php artisan route:cache
Speed up your application for production caching all your application’s routes.
php artisan route:clear
Clear the cached version of your routes — use this on local deployments if you have cached routes. Re-run the cache command above on production to clear and re-cache routes.
php artisan config:clear
Clear your cached config — use this on local deployments if you have cached config. Re-run the cache command above on production to clear and re-cache config.
Cheat Sheet Laravel Free
Browselaravel小抄
Details
Installs
- Total10K
- Win6K
- Mac1K
- Linux2K
Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 3 | 0 | 1 | 1 | 1 | 2 | 3 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 2 | 3 | 2 | 2 | 2 | 0 | 2 | 3 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 3 | 2 | 3 | 0 | 3 | 1 | 3 | 2 | 2 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Linux | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Readme
- Source
- raw.githubusercontent.com
Cheat Sheet Laravel Tutorial
Introduction
- Laravel Cheat Sheet is a sublime text package.
- Suitable for PHP developers use the Laravel framework
- I have collected and sorted the Laravel development manual(more referencelaravel cheat sheet)
- Support laravel latest version 5.*
- etc.
Laravel Cheat Sheet 2019 Pdf
Credits
Laravel Cheat Sheet 2019
License
The MIT License (MIT). Please see License File for more information.