laravel-basics
laravel-basics copied to clipboard
Laravel project tutorial code for beginners.
Laravel 5.8 Basics
This is an example application built on Laravel and Bootstrap for beginners.
Running this web application
-
make sure you already have xampp installed.
-
clone this repository to your local machine or just download the zip from the above green button.
-
install Composer first, then run this command in your command-line (you should be inside your project directory).
composer install
-
rename .env.example to .env and add your database and mail driver credentials (mailtrap is preferred).
-
generate application key.
php artisan key:generate
- create tables.
php artisan migrate
- Link the public disk for image upload (this will create a symbolic link to storage/app/public directory).
php artisan storage:link
- Start the development server.
php artisan serve
In Laravel, all the requests are directed to index.php in public directory so, if it does not work with your apache then create a virtual host or use dev server instead of opening it from http://localhost/your-laravel-project/public
Features
- Todos CRUD.
- Form Validation.
- Flash Messages.
- Authentication.
- Email Verification.
- Password Reset.
- Eloquent One to Many and Many to One Relationship.
- Image Upload.
Tutorial Links
-
Laravel 5.8 From Scratch: Intro, Setup , MVC Basics, and Views (Part 1)
-
Laravel 5.8 From Scratch: Config, ENV, Migrations, and Todos CRUD (Part 2)
-
Laravel 5.8 From Scratch: Authentication, Middleware, Email Verify and Password Reset (Part 3)
-
Laravel 5.8 From Scratch: Eloquent Relationships and Image Upload (Part 4)
-
Star the repo to show your love!!