Home

Awesome

LaraLTE2

Laravel PHP Framework with AdminLTE2

Whenever I start a new Laravel project, I do the same thing; Install packages, download Javascript plugins...etc.
This repository helps me bootstrap all of that.

Note: if you want to use Laravel 5.2, 5.3, 5.4 please checkout to branch

Setup:

All you need is to run these commands:

git clone https://github.com/kossa/laralte2.git
cd laralte2 
composer install                   # Install backend dependencies
sudo chmod 777 storage/ -R         # Chmod Storage
cp .env.example .env               # Update database credentials configuration
php artisan key:generate           # Generate new keys for Laravel
php artisan migrate:refresh --seed # Run migration and seed users and categories for testing
yarn install                       # Install node dependencies
npm run production                 # To compile assets for prod

Demo:

Note:
Username: test@example.com
Password: 123456

All the data are reset each 30mn ;) please d'ont forget to remove this function in your app


Included Packages:

Laravel (php):

JS plugins:

LaraLTE2 uses :

Page size optimization:

Note: If you're using Nginx check: server-configs-nginx

alt text

REST API

As you may see in included packages, I used ApiDocs to document all routes in api/v1 and controllers in Api namespace. You can check the docs at laralte2.bel4.com/api

Note: The API is protected by token, so when you send a request you should include APP-TOKEN in the header, this value will be compared to APP_TOKEN in .env file check this middleware

#FAQ

Create new CRUD

Creating CRUD in your application is the job you do most. Let's create Post CRUD:

Move Image and file ?

To move images im using a helper function based on intervention/image and variables.php you can check full example in User.php

Do you need RTL support ?

alt text

Create new REST API

Rest Controllers are in the App\Http\Controllers\Api namespace.

Do you have question ?

Not hesitate, open new issue ;)