Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, yet powerful, providing tools needed for large, robust applications. A superb combination of simplicity, elegance, and innovation give you tools you need to build any application with which you are tasked.
Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework. The Laravel documentation is thorough, complete, and makes it a breeze to get started learning the framework.
If you're not in the mood to read, Laracasts contains over 900 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.
We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page:
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at [email protected]. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.
- https://code.tutsplus.com/courses/get-started-with-laravel-5
- https://github.com/jasonlewis/build-your-first-laravel-site
Add Laravel into your project.
composer create-project laravel/laravel .
Serve your website using artisan. Open your browser and goto http://localhost.com:8080, learn more here.
php artisan serve —port 8080
You may have an old version of Laravel, if you do, you probably need to update your PHP engine. You can check your version of PHP by running
php -v
and for Laravel:
php artisan --version
To update PHP run the following lines below. Learn more.
curl -s http://php-osx.liip.ch/install.sh | bash -s 7.1
Then you have to update the bash profile so that when you run things from the terminal that need the PHP engine, it would run the updated PHP version. You'll do this by running this command also in terminal.
echo ‘export PATH=/usr/local/php5/bin:$PATH’ >>~/.bash_profile
If you check your php version, you'll see that it still shows you have an old version of PHP. So what you need to do is quit out of terminal and reopen it. Then when you lookup your php version, the changes will then be reflected.
Laravel has built in integration with MailTrap.io for testing emails. This is seen in the .env file.
You can have Laravel generate a Mailable class for you so that you can extend it. When you run the command below, it will create a Contact class that extends the Laravel Mailable class under the app > mail > contact.php in your directory.
php artisan make:mail Contact
- Message bag and flash session data.
https://github.com/sarn1/example-laravel/blob/master/routes/web.php#L50
- Route names : https://github.com/sarn1/example-laravel/blob/master/routes/web.php#L16 / https://github.com/sarn1/example-laravel/blob/master/resources/views/template.blade.php#L32
- Validation : https://github.com/sarn1/example-laravel/blob/master/routes/web.php#L33
- Mailer code: https://github.com/sarn1/example-laravel/tree/master/app/Mail
- Blade @yield : https://github.com/sarn1/example-laravel/blob/master/resources/views/template.blade.php#L46