Download the PHP package rwbuild/dashboard without Composer
On this page you can find all versions of the php package rwbuild/dashboard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package dashboard
Dashboard Package
The Dashboard Pakcge is a plug-and-play laravel package that provides a quick and easy integration of a dashboard in your laravel project, with customizable assets built in for Analytics, Users, Roles, Permissions and TOS management.
Requirements
Installation
Use the php dependency manager, composer, to install the package.
Setup
Once the installion is complete, run
This command will create a migration file in database > migrations. Before proceeding run the migrate command first.
Installation
01
Once the migrate command has run successfully, run the command below to get the dashboard installed in your application.
then,
02
After successfully running this command, your folders structure should change and looks like:
Inside app>Http>Controllers , a Dashboard folder containing controller files will be created.
Inside app>Http>View>Composers will be generated view composer files that powers the blade views.
A Helper class will also be generated inside app>Helpers where you put your helper funtions for personal customizations.
Inside resources>views , a dashboard folder containing blade files will be created. These are customizable views that power the dashboard.
Inside routes/web.php and api.php, the files will be updated with the dashboard routes, and should look like this:
Inside the public>css folder, you should have the dashboard.css file, that contains all sylings of the dashboard.
Inside the pubic>js folder, you should have the dashboard.js and dashboard_analytics.js fils.
03
Load the view composers class in AppServiceProvider.php
04
Add the helper file in composer.json
05
Go to app>Http>Kernel.php and add a midlleware to your $routeMiddleware array
You should add this middleware to your web routes to get the users' on visits on your site logged.
Inside your main layout, or your entry file, include the dashboard_analytics.js file,
-
Features visits
To get the analytics of hits or features your users visited, call the fuction daFeatureVisit(featureName) on your target event:
eg.
Configurations
To get the package working perfecly, check if the configurations are set properly. Inside the config folder, you should find the dashboardmodels.php that contains the configuration of your application models. This tell the package where to look for the models. Configure each key according to the namespace of the model its point to.
Deep dive
Accessing models inside the package's controllers
All action on models can be perfomed inside the dashboard controllers by:
Using the Model facade
Using the ModelsDefinition trait
Have fun 😎