bantenprov / passing-grade
passing-grade
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 4
Open Issues: 0
Language:Vue
Requires
- php: >=5.6.4
- illuminate/support: 5.4.*
This package is not auto-updated.
Last update: 2024-12-22 06:37:17 UTC
README
Passing Grade
Install via composer
- Development snapshot
composer require bantenprov/passing-grade:dev-master
- Latest release:
composer require bantenprov/passing-grade
Download via github
git clone https://github.com/bantenprov/passing-grade.git
Edit config/app.php
:
'providers' => [ /* * Laravel Framework Service Providers... */ Illuminate\Auth\AuthServiceProvider::class, Illuminate\Broadcasting\BroadcastServiceProvider::class, Illuminate\Bus\BusServiceProvider::class, Illuminate\Cache\CacheServiceProvider::class, Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, Illuminate\Cookie\CookieServiceProvider::class, //... Bantenprov\PassingGrade\PassingGradeServiceProvider::class, //... ];
Edit app/Http/Kernel.php
protected $routeMiddleware = [ 'auth' => \Illuminate\Auth\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 'can' => \Illuminate\Auth\Middleware\Authorize::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, //... 'role' => \Laratrust\Middleware\LaratrustRole::class, 'permission' => \Laratrust\Middleware\LaratrustPermission::class, 'ability' => \Laratrust\Middleware\LaratrustAbility::class, //... ];
Lakukan publish semua komponen :
php artisan vendor:publish --tag=passing-grade-publish
Lakukan auto dump :
composer dump-autoload
Lakukan seeding :
Edit menu resources/assets/js/menu.js
{ name: 'Dashboard', icon: 'fa fa-dashboard', childType: 'collapse', childItem: [ //... // Passing Grade (Public) { name: 'Passing Grade (Public)', link: '/passing-grade-public', icon: 'fa fa-angle-double-right', }, // Passing Grade { name: 'Passing Grade', link: '/dashboard/passing-grade', icon: 'fa fa-angle-double-right', }, //... ] },
{ name: 'Admin', icon: 'fa fa-lock', childType: 'collapse', childItem: [ //... // Passing Grade { name: 'Passing Grade', link: '/admin/passing-grade', icon: 'fa fa-angle-double-right', }, //... ] },
Tambahkan components resources/assets/js/components.js
:
//... Passing Grade ...// import PassingGradeAdminShow from '~/components/bantenprov/passing-grade/passing-grade/PassingGradeAdmin.show.vue'; Vue.component('passing-grade-admin', PassingGradeAdminShow); //... Echarts Passing Grade ...// import PassingGrade from '~/components/bantenprov/passing-grade/passing-grade/PassingGrade.chart.vue'; Vue.component('passing-grade-echarts', PassingGrade); import PassingGradeKota from '~/components/bantenprov/passing-grade/passing-grade/PassingGradeKota.chart.vue'; Vue.component('passing-grade-echarts-kota', PassingGradeKota); import PassingGradeTahun from '~/components/bantenprov/passing-grade/passing-grade/PassingGradeTahun.chart.vue'; Vue.component('passing-grade-echarts-tahun', PassingGradeTahun); //... Mini Bar Charts Passing Grade ...// import PassingGradeBar01 from '~/components/views/bantenprov/passing-grade/passing-grade/PassingGradeBar01.vue'; Vue.component('passing-grade-bar-01', PassingGradeBar01); import PassingGradeBar02 from '~/components/views/bantenprov/passing-grade/passing-grade/PassingGradeBar02.vue'; Vue.component('passing-grade-bar-02', PassingGradeBar02); import PassingGradeBar03 from '~/components/views/bantenprov/passing-grade/passing-grade/PassingGradeBar03.vue'; Vue.component('passing-grade-bar-03', PassingGradeBar03); //... Mini Pie Charts Passing Grade ...// import PassingGradePie01 from '~/components/views/bantenprov/passing-grade/passing-grade/PassingGradePie01.vue'; Vue.component('passing-grade-pie-01', PassingGradePie01); import PassingGradePie02 from '~/components/views/bantenprov/passing-grade/passing-grade/PassingGradePie02.vue'; Vue.component('passing-grade-pie-02', PassingGradePie02); import PassingGradePie03 from '~/components/views/bantenprov/passing-grade/passing-grade/PassingGradePie03.vue'; Vue.component('passing-grade-pie-03', PassingGradePie03);
Tambahkan route di dalam file : resources/assets/js/routes.js
:
{ path: '/dashboard', redirect: '/dashboard/home', component: layout('Default'), children: [ //... // Passing Grade (Public) { path: '/passing-grade-public', components: { main: resolve => require(['~/components/bantenprov/passing-grade/passing-grade-public/PassingGradePublic.index.vue'], resolve), navbar: resolve => require(['~/components/Navbar.vue'], resolve), sidebar: resolve => require(['~/components/Sidebar.vue'], resolve), }, meta: { title: "Passing Grade", }, }, { path: '/passing-grade-public/:id/:track?', components: { main: resolve => require(['~/components/bantenprov/passing-grade/passing-grade-public/PassingGradePublic.show.vue'], resolve), navbar: resolve => require(['~/components/Navbar.vue'], resolve), sidebar: resolve => require(['~/components/Sidebar.vue'], resolve), }, meta: { title: "View Passing Grade", }, }, //... // Passing Grade { path: '/dashboard/passing-grade', components: { main: resolve => require(['~/components/views/bantenprov/passing-grade/passing-grade/PassingGradeDashboard.vue'], resolve), navbar: resolve => require(['~/components/Navbar.vue'], resolve), sidebar: resolve => require(['~/components/Sidebar.vue'], resolve) }, meta: { title: "Passing Grade", }, }, //... ] },
{ path: '/admin', redirect: '/admin/dashboard/home', component: layout('Default'), children: [ //... // Passing Grade { path: '/admin/passing-grade', components: { main: resolve => require(['~/components/bantenprov/passing-grade/passing-grade/PassingGrade.index.vue'], resolve), navbar: resolve => require(['~/components/Navbar.vue'], resolve), sidebar: resolve => require(['~/components/Sidebar.vue'], resolve), }, meta: { title: "Passing Grade", }, }, { path: '/admin/passing-grade/:id/:track?', components: { main: resolve => require(['~/components/bantenprov/passing-grade/passing-grade/PassingGrade.show.vue'], resolve), navbar: resolve => require(['~/components/Navbar.vue'], resolve), sidebar: resolve => require(['~/components/Sidebar.vue'], resolve), }, meta: { title: "View Passing Grade", }, }, //... ] },