Laravel is a PHP framework for constructing everything from small to enterprise-level applications. As you’ll find, it’s a joy to use, and just might make you enjoy writing PHP again. It’s that good.
Laravel PHP Server Requirements
The Laravel framework has a few system requirements. Of course, all of these requirements are satisfied by the Laravel Homestead virtual machine, so it’s highly recommended that you use Homestead as your local Laravel development environment. However, if you are not using Homestead, you will need to make sure your server meets the following requirements:
- PHP >= 5.5.9
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- PHP Extension
Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine. * Run this command composer global require “laravel/installer” to install Composer in your local machine. After composer installed, run this command
laravel new project_name in your directory you want to create your project: Now you have Laravel installed and setup.
The next thing you should do after installing Laravel is set your application key to a random string. If you installed Laravel via Composer or the Laravel installer, this key has already been set for you by the
php artisan key:generate command. Typically, this string should be 32 characters long. The key can be set in the .env environment file. If you have not renamed the
.env.example file to
.env, you should do that now. If the application key is not set, your user sessions and other encrypted data will not be secure!
Laravel needs almost no other configuration out of the box. You are free to get started developing! However, you may wish to review the
config/app.php file and its documentation. It contains several options such as time zone and locale that you may wish to change according to your application.
Lavarvel comes with:
– App folder : contacting all you application components
– Bootstrap folder: contain the front-end components
– Config folder: Contain all configuration files within the project ie: database connective, app, views, etc.
– Database folder: contain three folders factories, migrations and seed
– Node_modules folder: contain modules of the application
– Public folder
– Resources folder
– Storage folder
– Tests folder
– Vendor folder
– .env: file has the set-up of the app and the app key
– External Libraries
Joy your Laravel framework and for more information visit the website.
Posted by Deng Manyok