A Laravel 5.1 ORM example with Nerds as users.
App Features |
---|
Show all Nerds |
Add a Nerd |
Edit a Nerd |
Delete a Nerd |
Keeps Nerd's Name |
Keeps Nerd's E-mail |
Keeps Nerd's Level |
Super Light Implementation of Bootstrap 3 |
App Core Build |
---|
Built on Laravel 5.1 |
Nerds Migration, Controller, Model, and Views |
Uses MySQL Database |
Uses Artisan to manage database migration, schema creations, and create/publish page controller templates |
Dependencies are managed with COMPOSER |
- Run
git clone https://github.com/jeremykenedy/laravel-nerds.git laravel-nerds
- Run
composer update
from the projects root folder - Create a MySQL database for the project
mysql -u root -p
, if using Vagrant:mysql -u homestead -psecret
create database laravelnerds;
\q
- From the projects root run
cp .env.example .env
- Configure your
.env
file - From the projects root run
sudo chmod -R 755 ../laravel-nerds
- From the projects root folder run
php artisan key:generate
- From the projects root folder run
php artisan migrate
/nerds
/nerds/create
/nerds/{id}
/nerds/{id}/edit
Laravel PHP Framework
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, and caching.
Laravel aims to make the development process a pleasing one for the developer without sacrificing application functionality. Happy developers make the best code. To this end, we've attempted to combine the very best of what we have seen in other web frameworks, including frameworks implemented in other languages, such as Ruby on Rails, ASP.NET MVC, and Sinatra.
Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked.
Documentation for the entire framework can be found on the Laravel website.
All Laravel Framework related issues and pull requests should be filed on the laravel/framework repository.
The Laravel framework is open-sourced software licensed under the MIT license
Bootstrap Front-End Framework
Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development, created by Mark Otto and Jacob Thornton, and maintained by the core team with the massive support and involvement of the community.
Bootstrap's documentation, included in this repo in the root directory, is built with Jekyll and publicly hosted on GitHub Pages at http://getbootstrap.com.
Example .env
file:
APP_ENV=local
APP_DEBUG=true
APP_KEY=SomeRandomString
DB_HOST=localhost
DB_DATABASE=laravelNerds
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null