laravel starter Template, to save your time when You start with new scalable Laravel projects with many features.
you can see all things in live demo
Dashboard Creditional
Super Admin
User: super@admin.com
Pass: secret
User
User: user@user.com
Pass: secret
please be careful about the Requirements:-
- Highly Recommended to use it with PHP v7.4 or up, and ensure that , the version used by composer is 7.4 to Avoid any problems with contianed packages.
- All packages work probably with PHP 7.2, BUT PHP7.4 and The exif extension is required for Spatie Media Library.
if you have PHP7.4 you will use this template with all features without any problems, but if your PHP under 7.4 you Can NOT use it with Spatie Media Library, SO you must uninstall Spatie Media Library or Upgrade your php to 7.4 or UP see more about Spatie Media Library here
I have created a number of custom commands for the project. The commands are listed below with a brief about the use of it.
composer clear-all
this is a shortcut command clear all cache including config, route and more
composer fix-cs
apply the code style fix by this command.
The laravel-starter-template
comes with a number of features which are the most common in almost all the applications. It is a template project which means it is intended to build in a way that it can be used for other projects.
It is a modular application, and a number of modules are installed by default. It will be helpful to use it as a base for the future applications.
- Admin feature and public views are completely separated as
Backend
andFrontend
namespace. - Major feature are developed as
Modules
. Module like Posts, Comments, Tags are separated from the core features like User, Role, Permission
- User Authentication
- Social Login
- Github
- Build in a way adding more is much easy now
- User Profile with Avatar
- Separate User Profile table
- Role-Permissions for Users
- Dynamic Menu System
- Backend Theme
- Bootstrap 4, CoreUI
- Fontawesome 5
- Frontend Theme
- Bootstrap 4, Impact Design Kit
- Fontawesome 5
- Article Module
- Posts
- Categories
- Tags
- Comments
- wysiwyg editor
- File browser
- Application Settings
- External Libraries
- Bootstrap 4
- Fontawesome 5
- CoreUI
- Impact Design Kit
- Select2
- Date Time Picker
- Backup (Source, Files, Database as Zip)
- Log Viewer
- Built by Modules (microservices) Archticture
- Notification
- Dashboard and details view
- RSS Feed
- Well Structure of Scalable Laravel Projects (Modules Structure, Folders,Routes,Controllers,Views)
- Language Switcher Frontend and Backend (with middleware)
- RTL Support by one click ,Just change language to Arabic , it will change Direction to RTL
- Eloquent models translatable with spatie/laravel-translatable
- SEO Friendly by Forcing all frontend routes with locale prefix
- with Spatie Media Library and conversitions
- with Yajra DataTables
- with infyom Laravel Generator
- All Stubs are ready to customize
- Notifications for Admin
Follow the steps mentioned below to install and run the project.
- Clone or download the repository
git clone https://github.com/omaralalwi/laravel-starter-template
- Go to the project directory and run
composer install
- Create
.env
file by copying the.env.example
. You may use the command to do thatcp .env.example .env
- Update the database name and credentials in
.env
file - Run the command
php artisan migrate --seed
- Link storage directory:
php artisan storage:link
- generate encryption key to app:
php artisan key:generate
- You may create a virtualhost entry to access the application or run
php artisan serve
from the project root and visithttp://127.0.0.1:8000
- Login to Admin Panel
localhost:8000/admin/dashboard
Username: super@admin.com Password: secret
After creating the new permissions use the following commands to update cashed permissions.
php artisan cache:forget spatie.permission.cache
FontAwesome & CoreUI Icons, two different font icon library is installed for the Backend theme and only FontAwesome for the Frontend. For both of the cases we used the free version. You may install the pro version separately for your own project.
- FontAwesome - https://fontawesome.com/icons?d=gallery&m=free
- CoreUI Icons - https://icons.coreui.io/icons/
According to spaite pakcage:-
-
to make default local open config/translatable and edit 'fallback_locale' => null, to your prefferd local like: 'fallback_locale' => ar, if you prefer Arabic.
-
NOTE: This prefferd local for translated models not for App local, this mean if you insert product with many languages the primary language will be ar.
-
All Toturials for Translation package here , you do't need to install it , it is preinstalled, Just see Toturials.
to login with Admin You must add it by run the follwing command
php artisan db:seed
Then insert Demo Data For Posts and comments and Tags and another Models , Run the follwing Command
php artisan starter:insert-demo-data --fresh
these some screenshotes
This project will continue to evolve and grow, until it becomes the first Laravel Starter Template, follwo me to still up to date.
Contact ME Twitter OR Hire me on Freelancer OR Hire me on UpWork OR Contact by Email
This Project is open sourced software licensed under the MIT license.