Skip to content

longlevan9x/laravel-base

Repository files navigation

How to install

Using composer

$ 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

Using git

How to create repository

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.

Remote

Show Remote:

$ git remote

Branch

$ git branch -d <branch_name> 

Open .git/.config then change remote = remote_new

Git reset commit

  • 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~

Git Log

Preview oneline:

$ git log --pretty=oneline

Install plugin && Library

Plugin require

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 
Plugin other
$ composer require fabpot/goutte
$ composer require guzzlehttp/guzzle
$ composer require symfony/browser-kit
$ composer require symfony/dom-crawler

Library

Library require
  • 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

About

base website in laravel framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published