cd Code mkdir NOMBRE_DEL_PROYECTO cd NOMBRE_DEL_PROYECTO git init git remote add origin "PATH_TO_YOUT_REPO" git pull origin master (linea)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clone your project | |
Go to the folder application using cd | |
Run composer install on your cmd or terminal | |
Copy .env.example file to .env on root folder. You can type copy .env.example .env if using command prompt Windows or cp .env.example .env if using terminal Ubuntu | |
Open your .env file and change the database name (DB_DATABASE) to whatever you have, username (DB_USERNAME) and password (DB_PASSWORD) field correspond to your configuration. | |
By default, username is root and you can leave password field empty. (This is for Xampp) | |
By default, username is root and password is also root. (This is for Lamp) | |
Run php artisan key:generate | |
Run php artisan migrate | |
Run php artisan serve |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::get('/', function () { | |
return view('admin.dashboard'); | |
})->middleware('auth'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp .env.example .env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.provider 'virtualbox' do |vb| | |
vb.gui = true | |
vb.customize ['modifyvm', :id, '--cableconnected1', 'on'] | |
config.ssh.username = "vagrant" | |
config.ssh.password = "vagrant" | |
config.ssh.insert_key = false | |
config.ssh.forward_agent = true | |
config.vm.network "forwarded_port", guest: 22, host: 2222, host_ip: "127.0.0.1", id: 'ssh' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--cableconnected1", "on"] | |
end |