how to host laravel project on local server code example
Example 1: run laravel git project
Run all of those commands:
composer install or php composer.phar install
mv .env.example .env
php artisan key:generate
php artisan migrate
php artisan db:seed to run seeders, if any.
php artisan serve
Example 2: start someones laravel project
1. composer update --no-scripts or composer install
2. php artisan key:generate
3. rename example.env to .env
4. Change database credentials, set debug mode! Change app url
4. php artisan migrate(make sure u have the database running in the server)
5. php artisan config:clear
6. you are good to go!
Example 3: how to host laravel project on local server
// command to host laravel project on local machine
//php artitan serve --host=your ip address --port=select port
php artisan serve --host=195.154.12.125 --port=8001
Example 4: how to host laravel project on local server
// command to host laravel project on local machine
//php artitan serve --host=your ip address --port=select port
php artisan serve --host=195.154.12.125 --port=8001
Example 5: how to host laravel project on local server
// command to host laravel project on local machine
//php artitan serve --host=your ip address --port=select port
php artisan serve --host=195.154.12.125 --port=8001