Category : voyager

Voyager images in storage folder are giving a 404 error when uploaded to live server. I am serving my laravel project on cpanel with my project in a separate folder (/home/username/mysitename) and the contents of my public file have been moved to (home/public_html). I have created a sym link between (home/username/mysitename/storage/app/public) and (home/username/public_html/storage). I have ..

Read more

Added standart Image Row block to my page. Added some images. And can’t to delete last image. At first time – remove icon have not a listener, when clicked to icon – nothing to happened. Duplicated view of block edit to my project resourcesviewsvendorvoyagerpage-blocksedit-add.blade.php Copied listener from vendortcgvoyagerresourcesviewsbreadedit-add.blade.php – where deleting is work $(‘.form-group’).on(‘click’, ‘.remove-multi-image’, ..

Read more

My application was working good but when I installed Livewire, I’m getting error in breadcrumbs like this. Call to undefined method AppTag::getChildrenAttribute() (View: D:Websiteecommerceresourcesviewslayoutsratings.blade.php) ShopController public function show($slug) { $tag = Tag::where(‘slug’, request()->tag)->get()->first(); $tags = Tag::where(‘slug’, request()->tags)->get()->first(); $product = Product::where(‘slug’, $slug)->firstOrFail(); return view(‘layouts.product’)->with([ ‘product’ => $product, ‘tags’ => $tags, ‘tag’ => $tag, ]); } Livewire/ProductRatings.php ..

Read more

My Voyager Admin panel was working fine but when I updated composer and Laravel from 7 to 8, I’m getting this error. Trying to get property ‘name’ of non-object. "vendortcgvoyagerresourcesviewsdimmers.blade.php" BasePolicy.php protected function checkPermission(User $user, $model, $action) { if (!isset(self::$datatypes[get_class($model)])) { $dataType = Voyager::model(‘DataType’); self::$datatypes[get_class($model)] = $dataType->where(‘model_name’, get_class($model))->first(); } $dataType = self::$datatypes[get_class($model)]; return $user->hasPermission($action.’_’.$dataType->name); } ..

Read more

Everything is alright with local environment but problem arises with the deployment to the server. How I deployed my laravel voyager project ? First of all I have made a directory called compliance, So, the path became ‘/home/my_username/compliance‘ After that I have moved everything from public directory to public_html Then I have changed index.php inside ..

Read more