This repository was archived by the owner on Apr 18, 2020. It is now read-only.
forked from bestmomo/laravel5-5-example
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 385dc35
Showing
1,393 changed files
with
314,201 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
APP_NAME=Laravel | ||
APP_ENV=local | ||
APP_KEY= | ||
APP_DEBUG=true | ||
APP_LOG_LEVEL=debug | ||
APP_URL=http://localhost | ||
|
||
DB_CONNECTION=mysql | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=homestead | ||
DB_USERNAME=homestead | ||
DB_PASSWORD=secret | ||
|
||
BROADCAST_DRIVER=log | ||
CACHE_DRIVER=file | ||
SESSION_DRIVER=file | ||
QUEUE_DRIVER=sync | ||
|
||
REDIS_HOST=127.0.0.1 | ||
REDIS_PASSWORD=null | ||
REDIS_PORT=6379 | ||
|
||
MAIL_DRIVER=smtp | ||
MAIL_HOST=smtp.mailtrap.io | ||
MAIL_PORT=2525 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
|
||
PUSHER_APP_ID= | ||
PUSHER_APP_KEY= | ||
PUSHER_APP_SECRET= |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
* text=auto | ||
*.css linguist-vendored | ||
*.scss linguist-vendored | ||
*.js linguist-vendored | ||
CHANGELOG.md export-ignore |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/node_modules | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
/.idea | ||
/.vagrant | ||
Homestead.json | ||
Homestead.yaml | ||
npm-debug.log | ||
yarn-error.log | ||
.env |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
## Laravel 5-5 example ## | ||
|
||
**Laravel 5-5 example** is a tutorial application. | ||
|
||
### Installation ### | ||
|
||
* type `git clone https://github.com/bestmomo/laravel5-5-example.git projectname` to clone the repository | ||
* type `cd projectname` | ||
* type `composer install` | ||
* type `composer update` | ||
* type `php artisan key:generate`to regenerate secure key | ||
* if you use MySQL in *.env* file : | ||
* set DB_CONNECTION | ||
* set DB_DATABASE | ||
* set DB_USERNAME | ||
* set DB_PASSWORD | ||
* if you use sqlite : | ||
* type `touch database/database.sqlite` to create the file | ||
* type `php artisan migrate --seed` to create and populate tables | ||
* edit *.env* for emails configuration | ||
|
||
### Include ### | ||
|
||
* [Styleshout](https://www.styleshout.com/) for front template | ||
* [CKEditor](http://ckeditor.com) the great editor | ||
* [Elfinder](https://github.com/Studio-42/elFinder) the nice file manager | ||
* [Sweat Alert](http://t4t5.github.io/sweetalert/) for the cool alerts | ||
* [AdminLTE](https://adminlte.io/themes/AdminLTE/index2.html) the great admin template | ||
* [Gravatar](https://github.com/creativeorange/gravatar) the Gravatar package | ||
* [Intervention Image](http://image.intervention.io/) for image manipulation | ||
* [Email confirmation](https://github.com/bestmomo/laravel-email-confirmation) the package for email confirmation | ||
* [Artisan language](https://github.com/bestmomo/laravel-artisan-language) the package for language strings management | ||
|
||
### Features ### | ||
|
||
* Home page | ||
* Custom error pages 403, 404 and 503 | ||
* Authentication (registration, login, logout, password reset, mail confirmation, throttle) | ||
* Users roles : administrator (all access), redactor (create and edit post, upload and use medias in personnal directory), and user (create comment in blog) | ||
* Blog with comments | ||
* Search in posts | ||
* Tags on posts | ||
* Contact us page | ||
* Admin dashboard with messages, users, posts, roles and comments | ||
* Users admin (roles filter, show, edit, delete, create, blog report) | ||
* Posts admin (list with dynamic order, show, edit, delete, create) | ||
* Multi users medias gestion | ||
* Localization | ||
* Application tests | ||
* Use of new notifications to send emails and notify redactors for new comments | ||
|
||
### Assets ### | ||
|
||
CSS is compiled with Elixir, look at **gulpfile.js** for details. | ||
|
||
### Tricks ### | ||
|
||
To use application the database is seeding with users : | ||
|
||
* Administrator : email = [email protected], password = admin | ||
* Redactor : email = [email protected], password = redac | ||
* User : email = [email protected], password = walker | ||
* User : email = [email protected], password = slacker | ||
|
||
### Tests ### | ||
|
||
When you want to launch the tests first rollback the database : | ||
|
||
`php artisan migrate:rollback` | ||
|
||
Then migrate and seed : | ||
|
||
`php artisan migrate --seed` | ||
|
||
You can then use PHPUnit |
Oops, something went wrong.