Category : adminlte

I’m trying to call a module route from an AdminLTE submenu but it says: syntax error, unexpected token ":", expecting "(" I’m writing at the top of file ‘views/vendor/partials/sidebar/menu-item-link.blade.php’ 2 lines but it is probably breaking with the first one: @if( !isset($item[‘module’]) || (Module::has($item[‘module’]) ) And of course in the adminlte.php configuration file I add ..

Read more

I made the show details feature using a button, when I click the detail button the data doesn’t appear. why when I click the detail page detail button doesn’t show: This is my code: Controllers mahasiswa.php <?php defined(‘BASEPATH’) or exit(‘No direct script access allowed’); class Mahasiswa extends CI_Controller { public function index() { $data[‘mahasiswa’] = ..

Read more

In my Laravel project, I have the following models: Product (‘name’ string, ‘amount’ integer and ‘price’ decimal) Cart (‘cost’ decimal) CartProd (‘unit_price’ decimal, ‘amount’ integer, ‘discount’ decimal, ‘total_cost’ decimal and foreign keys to a product and a cart) The idea is that, when you want to create a new cart, the CartController method creates a ..

Read more

I have a ClassController which sends $players & $classPlayers collections to a view. /** * Show the form for editing the specified resource. * * @param int $id * @return IlluminateHttpResponse */ public function edit($id) { $classe = Classe::findOrFail($id); $players = User::whereRoleIs([‘player’])->get(); $classePlayers = User::where(‘classe_id’, ‘=’, $classe->id)->get(); return view("admin.classes.edit", compact(‘classe’, ‘players’, ‘classePlayers’)); } the collection ..

Read more