A Directindustry Web Guide System developed based on Laravel
Laravel Costar
is a simple starter Directindustry Web Guide System based on Laravel 10.x. Most of the commonly needed features of an application like Authentication
, Authorisation
, User
and Role management
, Application Backend
, Backup
, Log viewer
are available here. It is modular, so you may use this project as a base and build your own modules. A module can be used in any Laravel Costar
based projects.
Screenshots
-
User Authentication
-
User Profile with Avatar
- Separate User Profile table
-
Role-Permissions for Users
-
Dynamic Menu System
-
Language Switcher
-
Localization enabled across the project
-
Backend Theme
- Bootstrap 5, CoreUI
- Fontawesome 6
-
Frontend Theme
- Tailwind
- Fontawesome 6
-
Page Module
-
Article Module
- Posts
- Categories
- Tags
- Comments
- wysiwyg editor
- File browser
-
Application Settings
-
External Libraries
- Bootstrap 5
- Fontawesome 6
- CoreUI
- Tailwind
- Datatables
- Select2
- Date Time Picker
-
Backup (Source, Files, Database as Zip)
-
Log Viewer
-
Notification
- Dashboard and details view
- PHP >= 8.1
- Mysql >= 5.7.8
- BCMath PHP Extension
- Ctype PHP Extension
- DOM PHP Extension
- Fileinfo PHP Extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PCRE PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
This laravel-cms-stater
allows users who don't use Composer, SSH etc to install your application just by following the setup wizard. The current features are :
- Check For Server Requirements.
- Check For Folders Permissions.
- Ability to set database information.
- env text editor
- env form wizard
- Migrate The Database.
- Seed The Tables.
- Clone or download the repository
- Go to the project directory and run
composer install
- visit
http://your-site.domain/install
Follow the steps mentioned below to install and run the project. You may find more details about the installation in Installation Wiki.
- Clone or download the repository
- 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 to generate application key
php artisan key:generate
- Run the command
php artisan migrate --seed
- Link storage directory:
php artisan storage:link
- 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
After creating the new permissions use the following commands to update cashed permissions.
php artisan cache:forget spatie.permission.cache
This project is configured with Laravel Sail (https://laravel.com/docs/sail). You can use all the docker functionalities here. To install using docker and sail:
- Clone or download the repository
- Go to the project directory and run
composer install
- Create
.env
file by copying the.env-sail
. You may use the command to do thatcp .env-sail .env
- Update the database name and credentials in
.env
file - Run the command
sail up
(consider adding this to your alias:alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'
) - Run the command
sail artisan migrate --seed
- Link storage directory:
sail artisan storage:link
- Since Sail is already up, you can just visit http://localhost:80
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 project.
- FontAwesome - https://fontawesome.com
Login Now by giving this data http://your-site-domain.com/admin
Username: [email protected]
Password: password
Username: [email protected]
Password: password
Username: [email protected]
Password: password
Username: [email protected]
Password: password
Username: [email protected]
Password: password
You can find it in database/seeders/Auth/UserTableSeeder.php
Several custom commands are available to add and update role-permissions
. Please read the Role - Permission Wiki page, where you will find the list of commands with examples.
If you want to test the application on your local machine with additional demo data you may use the following command.
php artisan costar:insert-demo-data --fresh
There are options to truncate the posts, categories, tags, and comments
tables and insert new demo data.
--fresh
option will truncate the tables, without this command new set of data will be inserted.
php artisan costar:insert-demo-data --fresh
We have created a number of custom commands for the project. The commands are listed below with a brief about their use of it.
composer clear-all
this is a shortcut command clear all cache including config, route, and more
We are now using Laravel Pint
to make the code style stays clean and consistent as the Laravel Framework. Use the following command to apply CS-Fix.
composer pint
To create a project use the following command, you have repalce the MODULE_NAME with the name of the module.
php artisan module:build MODULE_NAME
You may want to use --force option to overwrite the existing module. if you use this option, it will replace all the exisitng files with the defalut stub files.
php artisan module:build MODULE_NAME --force
After creating the new moudle use the following commands to to run your database migrations.
php artisan migrate
composer test