$ git clone https://github.com/longlevan9x/laravel-base.git <name project>
Then run following command to install vendor
$ composer install
Then run:
$ composer update
Continue run following command using gitbash
:
$ cp .env.example .env
Generate key:
$ php artisan key:generate
And config database connection:
DB_DATABASE=your_database
DB_USERNAME=your_username
DB_PASSWORD=your_password
Then run:
$ php artisan migrate
$ php artisan db:seed --class=UsersTableSeeder
Login admin with username/password: admin/123456
Add repository:
$ git remote add <name repository> <url>
Push:
$ git push <repository name> branch_name(master)
After add repository. You can pull code base from repository origin
and push code to repository added
.
Show Remote:
$ git remote
$ git branch -d <branch_name>
Open .git/.config
then change remote
= remote_new
- Chỉ đưa HEAD về như cũ
$ git reset --soft HEAD~
- Đưa HEAD và index về như cũ
$ git reset HEAD~
- Đưa cả index, working tree về 1 commit trước đó
$ git reset --hard HEAD~
Preview oneline:
$ git log --pretty=oneline
kartik-v bootstrap file-input:
- File added to resource/views/admin/partials/script.blade.php
- File added to resource/views/admin/partials/style.blade.php
$ php composer.phar require kartik-v/bootstrap-fileinput "@dev"
or add:
"kartik-v/bootstrap-fileinput": "@dev"
And run: $ composer update
$ composer require fabpot/goutte
$ composer require guzzlehttp/guzzle
$ composer require symfony/browser-kit
$ composer require symfony/dom-crawler
- silber/bouncer => role & permission
- barryvdh/laravel-debugbar
- cviebrock/eloquent-sluggable => sluggable
- dimsav/laravel-translatable => translatable
- doctrine/dbal => generate comment in model
- barryvdh/laravel-ide-helper => generate helper & meta
- yadakhov/insert-on-duplicate-key