1Laravel 8* install composer comand
2
3composer create-project laravel/laravel example-app
4
5cd example-app
6
7php artisan serve
1laravel install on windows
2-----------------------------------
31-composer install
4https://getcomposer.org/download/
52-laravel install using composer
6composer global require laravel/installer
73-create new project
8laravel new blog
9cd blog
104-serve project to localhost
11php artisan serve
1curl -s https://laravel.build/app-name | bash
2<!-- OR -->
3composer create-project --prefer-dist laravel/laravel app-name "8.*"
1*******************************************
2*** SETTING UP LARAVEL 8 (Simple steps) ***
3*******************************************
4
5**Ensure you computer already has PHP and Composer installed.
6Then apply the CLI commands below.
7
8** Vist "https://www.apachefriends.org/index.html" to install PHP via XAMPP
9** Visit "https://getcomposer.org/" to install composer
10
11
12ENTER CLI TERMINAL COMMANDS below
13------------------------------------
14> composer create-project laravel/laravel example-app
15
16> cd example-app
17
18> php artisan serve
19
20> composer require laravel/ui
21
22> php artisan ui vue --auth
23
24Now you will have to ensure you setup your database variables in the
25.env file of your laravel project so you can migrate your database.
26
27> php artisan migrate
28
29**At this stage, your laravel app is fully ready with
30login authentication for development
31
32
33DEPLOY APP TO ONLINE LINUX SERVER
34---------------------------------
35[1] Delete the file called "Server.php" in the Laravel Project directory
36
37[2] Copy your laravel 8 project to your web server "Public_html" directory
38
39[3] Simply copy all files in the "Public_html" folder of your
40Laravel 8 Project and paste in the server web home directory
41which is the servers own 'Public_html' folder which is also where
42Laravel project files are.
43
44[4] Then update the index.php file by changing the directory levels
45e.g. change '/../storage/framework/maintenance.php' to
46'/storage/framework/maintenance.php' by removing the '../' in the directory syntax.
47Thats all! just refresh your browser and your app will be running fine.
48
49
50-- By Atsu Emmanuel T.
51(Web Developer / Architecht)
52Email: atsuemmanuel@gmail.com
53
54
55