Skip to content

Commit 385dc35

Browse files
committed
first commit
0 parents  commit 385dc35

File tree

1,393 files changed

+314201
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,393 files changed

+314201
-0
lines changed

.env.example

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
APP_NAME=Laravel
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_LOG_LEVEL=debug
6+
APP_URL=http://localhost
7+
8+
DB_CONNECTION=mysql
9+
DB_HOST=127.0.0.1
10+
DB_PORT=3306
11+
DB_DATABASE=homestead
12+
DB_USERNAME=homestead
13+
DB_PASSWORD=secret
14+
15+
BROADCAST_DRIVER=log
16+
CACHE_DRIVER=file
17+
SESSION_DRIVER=file
18+
QUEUE_DRIVER=sync
19+
20+
REDIS_HOST=127.0.0.1
21+
REDIS_PASSWORD=null
22+
REDIS_PORT=6379
23+
24+
MAIL_DRIVER=smtp
25+
MAIL_HOST=smtp.mailtrap.io
26+
MAIL_PORT=2525
27+
MAIL_USERNAME=null
28+
MAIL_PASSWORD=null
29+
MAIL_ENCRYPTION=null
30+
31+
PUSHER_APP_ID=
32+
PUSHER_APP_KEY=
33+
PUSHER_APP_SECRET=

.gitattributes

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* text=auto
2+
*.css linguist-vendored
3+
*.scss linguist-vendored
4+
*.js linguist-vendored
5+
CHANGELOG.md export-ignore

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/node_modules
2+
/public/hot
3+
/public/storage
4+
/storage/*.key
5+
/vendor
6+
/.idea
7+
/.vagrant
8+
Homestead.json
9+
Homestead.yaml
10+
npm-debug.log
11+
yarn-error.log
12+
.env

README.md

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
## Laravel 5-5 example ##
2+
3+
**Laravel 5-5 example** is a tutorial application.
4+
5+
### Installation ###
6+
7+
* type `git clone https://github.com/bestmomo/laravel5-5-example.git projectname` to clone the repository
8+
* type `cd projectname`
9+
* type `composer install`
10+
* type `composer update`
11+
* type `php artisan key:generate`to regenerate secure key
12+
* if you use MySQL in *.env* file :
13+
* set DB_CONNECTION
14+
* set DB_DATABASE
15+
* set DB_USERNAME
16+
* set DB_PASSWORD
17+
* if you use sqlite :
18+
* type `touch database/database.sqlite` to create the file
19+
* type `php artisan migrate --seed` to create and populate tables
20+
* edit *.env* for emails configuration
21+
22+
### Include ###
23+
24+
* [Styleshout](https://www.styleshout.com/) for front template
25+
* [CKEditor](http://ckeditor.com) the great editor
26+
* [Elfinder](https://github.com/Studio-42/elFinder) the nice file manager
27+
* [Sweat Alert](http://t4t5.github.io/sweetalert/) for the cool alerts
28+
* [AdminLTE](https://adminlte.io/themes/AdminLTE/index2.html) the great admin template
29+
* [Gravatar](https://github.com/creativeorange/gravatar) the Gravatar package
30+
* [Intervention Image](http://image.intervention.io/) for image manipulation
31+
* [Email confirmation](https://github.com/bestmomo/laravel-email-confirmation) the package for email confirmation
32+
* [Artisan language](https://github.com/bestmomo/laravel-artisan-language) the package for language strings management
33+
34+
### Features ###
35+
36+
* Home page
37+
* Custom error pages 403, 404 and 503
38+
* Authentication (registration, login, logout, password reset, mail confirmation, throttle)
39+
* Users roles : administrator (all access), redactor (create and edit post, upload and use medias in personnal directory), and user (create comment in blog)
40+
* Blog with comments
41+
* Search in posts
42+
* Tags on posts
43+
* Contact us page
44+
* Admin dashboard with messages, users, posts, roles and comments
45+
* Users admin (roles filter, show, edit, delete, create, blog report)
46+
* Posts admin (list with dynamic order, show, edit, delete, create)
47+
* Multi users medias gestion
48+
* Localization
49+
* Application tests
50+
* Use of new notifications to send emails and notify redactors for new comments
51+
52+
### Assets ###
53+
54+
CSS is compiled with Elixir, look at **gulpfile.js** for details.
55+
56+
### Tricks ###
57+
58+
To use application the database is seeding with users :
59+
60+
* Administrator : email = [email protected], password = admin
61+
* Redactor : email = [email protected], password = redac
62+
* User : email = [email protected], password = walker
63+
* User : email = [email protected], password = slacker
64+
65+
### Tests ###
66+
67+
When you want to launch the tests first rollback the database :
68+
69+
`php artisan migrate:rollback`
70+
71+
Then migrate and seed :
72+
73+
`php artisan migrate --seed`
74+
75+
You can then use PHPUnit

0 commit comments

Comments
 (0)