2017 © Pedro Peláez
 

project laravel-starter

CMS like a modular Laravel Starter project.

image

nasirkhan/laravel-starter

CMS like a modular Laravel Starter project.

  • Monday, July 30, 2018
  • by nasirkhan
  • Repository
  • 3 Watchers
  • 5 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Laravel Starter - A CMS like modular starter project built with the latest Laravel framework., (*1)

Laravel Starter (based on Laravel 11.x)

Laravel Starter is a Laravel 11.x based simple starter project. Most of the commonly needed features of an application like Authentication, Authorisation, Users 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 Starter based project. Here Frontend and Backend are completely separated with separate routes, controllers, and themes as well., (*2)

Please let me know your feedback and comments., (*3)

Latest Stable Version StyleCI Build License PHP Version Require, (*4)

Reporting a Vulnerability

If you discover any security-related issues, please send an e-mail to Nasir Khan Saikat via nasir8891@gmail.com instead of using the issue tracker., (*5)

Appplication Demo

Check the following demo project. It is just a straight installation of the project without any modification., (*6)

Demo URL: https://laravel.nasirkhn.com, (*7)

You may use the following account credentials to access the application backend., (*8)

User: super@admin.com
Pass: secret

User: user@user.com
Pass: secret

Demo Data

If you want to test the application on your local machine with additional demo data you may use the following command., (*9)


php artisan laravel-starter:insert-demo-data

There are options to truncate the posts, categories, tags, and comments tables and insert new demo data., (*10)

--fresh option will truncate the tables, without this command a new set of data will be inserted., (*11)


php artisan laravel-starter:insert-demo-data --fresh

Custom Commands

We have created a number of custom commands for the project. The commands are listed below with a brief about their use of it., (*12)

Create New module

To create a project use the following command, you have to replace the MODULE_NAME with the name of the module., (*13)

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 existing files with the default stub files., (*14)

php artisan module:build MODULE_NAME --force

Clear All Cache

composer clear-all

this is a shortcut command to clear all cache including config, route, and more, (*15)

Code Style Fix

We are now using Laravel Pint to make the code style stay as clean and consistent as the Laravel Framework. Use the following command to apply CS-Fix., (*16)

composer pint

Along with Laravel Pint, we are using prettier to format the blade templates. You can install the prettier extension in your favorite editor. The following command will format the blade templates., (*17)

npm run format

or if you are using yarn then you can use the following command., (*18)

yarn format

Role - Permissions

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., (*19)

Features

The Laravel Starter comes with several features which are the most common in almost all applications. It is a template project which means it is intended to be built in a way that it can be used for other projects., (*20)

It is a modular application, and some modules are installed by default. It will be helpful to use it as a base for future applications., (*21)

  • Admin feature and public views are completely separated as Backend and Frontend namespace.
  • Major features are developed as Modules. A module like Posts, Comments, and Tags are separated from the core features like User, Role, Permission

Core Features

  • User Authentication
  • Social Login
    • Google
    • Facebook
    • Github
    • Build in a way adding more is much easier now
  • User Profile with Avatar
  • Role-Permissions for Users
  • Dynamic Menu System
  • Language Switcher
  • Localization enabled across the project
  • Backend Theme
    • Bootstrap 5, CoreUI
    • Fontawesome 6
    • Dark Mode
  • Frontend Theme
    • Tailwind
    • Fontawesome 6
    • Dark Mode
  • 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

User Guide

Installation

Follow the steps mentioned below to install and run the project. You may find more details about the installation in Installation Wiki., (*22)

  1. Open the terminal and run the following command, this will download and install the Laravel Starter and run the post-installation commands.
composer create-project nasirkhan/laravel-starter
  1. The default database is sqlite, if you want to change please update the database settings at .env file
  2. To create a link from the storage directory, run the following command from the project root:
php artisan storage:link
  1. If you run the create-project command from Laravel Hard then the site will be available at http://laravel-starter.test. You may create a virtualhost entry to access the application or run php artisan serve from the project root and visit http://127.0.0.1:8000

After creating the new permissions use the following commands to update cashed permissions., (*23)

php artisan cache:forget spatie.permission.cache, (*24)

Docker and Laravel Sail

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:, (*25)

  1. Clone or download the repository
  2. Go to the project directory and run composer install
  3. Create .env file by copying the .env-sail. You may use the command to do that cp .env-sail .env
  4. Update the database name and credentials in .env file
  5. Run the command sail up (consider adding this to your alias: alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail')
  6. Run the command sail artisan migrate --seed
  7. Link storage directory: sail artisan storage:link
  8. Since Sail is already up, you can just visit http://localhost:80

Screenshots

Home Page, (*26)

Laravel Starter Homepage Dark Mode Laravel Starter Homepage, (*27)

Login Page, (*28)

Laravel Starter Login, (*29)

Posts Page, (*30)

Laravel Starter Posts Page, (*31)

Backend Dashboard, (*32)

Laravel Starter Admin Dashboard Dark Mode Laravel Starter Admin Dashboard, (*33)


Laravel Starter Posts List, (*34)


Edit-Posts-Laravel-Starter, (*35)

The Versions