alqudiry/dashboard

Create powerful dashboard
2,969
Install
composer require alqudiry/dashboard
Latest Version:1.2
License:MIT
Last Updated:Oct 16, 2022
Links: GitHub  ·  Packagist
Maintainer: AbdullahAlqudiry1

Dashboard Package


Dashboard package create your dashboard with users, roles and settings with only one line.

Installation
composer require alqudiry/dashboard
Publish

Before publish the dashboard, please remove these files first:

app/Models/User.php
database/factories/UserFactory.php
database/migrations/2014_10_12_000000_create_users_table.php
database/migrations/2014_10_12_100000_create_password_resets_table.php
resources/lang/ar
resources/views
package.json
webpack.mix.js

publish package

php artisan vendor:publish --provider="Alqudiry\Dashboard\DashboardServiceProvider"

Configuration

Update your "App\Http\Kernel.php" to include webServiceAuth class:

'webServiceAuth' => \App\Http\Middleware\WebServiceAuth::class,

Add FortifyServiceProvider to your "config\app.php":

App\Providers\FortifyServiceProvider::class,

Update your "routes\web.php" to include this routes:

Route::get('/', [\App\Http\Controllers\HomeController::class, 'index'])->name('home');

Route::group(['middleware' => ['auth']], function () {
    Route::group(['as' => 'user.', 'prefix' => 'user'], function () {
        Route::resource('/profile', \App\Http\Controllers\User\ProfileController::class)->only('index', 'store');
    });

    Route::group(['as' => 'dashboard.', 'prefix' => 'dashboard'], function () {
        Route::group(['as' => 'system.', 'prefix' => 'system'], function () {
            Route::resource('/statistics', \App\Http\Controllers\Dashboard\System\StatisticsController::class)->only('index');
            Route::resource('/users', \App\Http\Controllers\Dashboard\System\UsersController::class)->only('index', 'edit', 'update');
            Route::resource('/roles', \App\Http\Controllers\Dashboard\System\RolesController::class)->except('show', 'destroy');
            Route::resource('/web-services', \App\Http\Controllers\Dashboard\System\WebServicesController::class)->except('show', 'destroy');
            Route::resource('/settings', \App\Http\Controllers\Dashboard\System\SettingsController::class)->only('index', 'store');
        });
    });
});

Make App Running

npm install
npm run dev

You Are Ready ..

Related Packages

laraveldaily/larastarters

Laravel Starter Kits with extra functions

142,282 773
talvbansal/media-manager

A media browser and uploader for laravel apps written in vue js and bootstrap

28,267 206
laravel-frontend-presets/zurb-foundation

Laravel 5.5.x Front-end preset for Zurb Foundation

18,696 52
mediactive-digital/medkit-theme-malabar

Theme malabar boilerplate for mediactive-digital/medkit

11,212 0
poteto-dev/laravel-ui-stisla

The laravel UI with Stisla Dashboard

7,850 61