ramivel/ramivel

Laravel Admin & Multiauth package

Installs: 63

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 1

Language:JavaScript

dev-master 2019-12-15 12:38 UTC

This package is auto-updated.

Last update: 2024-04-03 14:20:57 UTC


README

This package is just create admin side (multi auth), which is totaly isolated from your normal auth ( which we create using php artisan make:auth )

On top of that, you can use multiple authentication types, simultaneously, so you can be logged in as a user and an admin, without conflicts!

Version Guidance & installition

Laravel version Branch Install
6.0 && 7.0 1.6 composer require ramivel/ramivel:1.0-dev
8.0 1.8.1 composer require ramivel/ramivel:1.8.1-dev

Run This Commend

composer update

After that

Connect database

Run This Commend

php artisan ramivel:install 

Run This Commend

php artisan storage:link

Run This Commend

composer dump-autoload

Add this trait on this following path ../vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php

if (trait_exists('App\Relation\RelationMethods')) { 
    trait call_relation_helpers {
        use \App\Relation\RelationMethods; 
        } 
    }else{ 
        trait call_relation_helpers{} 
}


abstract class Model implements ArrayAccess, Arrayable, Jsonable, JsonSerializable, QueueableEntity, UrlRoutable
{
    use call_relation_helpers,
    ......... atc