Skip to content

eburonmedia/EcmaCore

Repository files navigation

EcmaCore

This is the core package for Eburon.Media's Content Management Application.

Usage

First install a fresh laravel application

$ laravel new ApplicationName

Make the necessary changes to the User Migration and move the User modal to the Models Directory. Reference the User to the new location in the Config => Auth.php

$ cd ApplicationName
$ composer require laravel/ui
$ php artisan ui bootstrap --auth

Add repository path to composer.json file

"repositories": {
    "eburonmedia/ecma-core": {
        "type": "vcs",
        "url": "https://github.com/eburonmedia/EcmaCore"
    }
}

Install the latest version core package

$ composer require eburonmedia/ecma-core

Load the migrations

$ php artisan migrate

Vendor publish the config file and the assets

$ php artisan vendor:publish

User trait

Add the user trait to the user model and import the class and add the required id properties

use EcmaUsersTrait;

protected $keyType = 'string';
public $incrementing = false;

Maintenance middleware

For using the maintenance mode you will have to add the included middleware to your routes

ecma.maintenance

Change log

Please see the changelog for more information on what has changed recently.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors