Laravel 5-3 example is a tutorial application.
It's an upgrade of this repository for Laravel 5.3 with big code cleaning and refactoring and application tests.
git clone https://github.com/bestmomo/laravel5-3-example.git projectnamecd projectnamecomposer install- Create a .env file (copy of .env.example)
php artisan key:generate- Create a database and edit .env
php artisan migrate --seedto create and populate tables- Edit .env for emails configuration
- Optionaly
npm installto manage assets
- Bootstrap for CSS and jQuery plugins
- Font Awesome for the nice icons
- Highlight.js for highlighting code
- Startbootstrap for the free templates
- CKEditor the great editor
- Elfinder the nice file manager
- laravel-lipsum for the lipsum generator
- Laravel Collective for Forms and Html
- 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)
- Posts admin (list with dynamic order, show, edit, delete, create)
- Multi users medias gestion
- Localization
- Application tests
- Use of new notifications to send emails
CSS is compiled with Elixir, look at gulpfile.js for details.
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
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