voyager

How to create custom controller in Laravel Voyager

丶灬走出姿态 提交于 2019-12-30 05:06:07
问题 I am very new in Voyager. I have got all the controllers inside TCG\\Voyager\\Http\\Controllers while installing Voyager but didn't find other controllers those I have created using BREAD. Besides that I want to create custom controller in my Voyager admin panel inside App\\Http\\Controllers\\Voyager . I also followed the steps of Voyager tutorial in Youtube for making custom controller, but couldn't create. Anybody help please ? 回答1: In your config\voyager.php file add your namespace:

Laravel Voyager broken strings in relationship menu

痞子三分冷 提交于 2019-12-24 06:25:34
问题 I am currently working on a Project using Laravel and the Voyager Admin Panel. When I'm trying to add a relationship using the bread builder I get the following broken strings. Broken String 1 Broken Image 2 After looking at the Voyager Views I have come to the conclusion that it is most likely a localization issue even though I'm using the English locale Settings. But i was still unable to fix it. Thanks in Advance 来源: https://stackoverflow.com/questions/48684592/laravel-voyager-broken

error `Missing storage symlink` for voyager admin panel in cPanel

好久不见. 提交于 2019-12-24 02:04:50
问题 I have uploaded a voyager admin panel in my cPanel. It gives error Missing storage symlink and images are not shown of new added item. Suppose I want to add a new user. All information is shown of new user accept user avatar. In locally error is easily fixed by running the cmd php artisan storage:link . But in live server how to fixed this error ? I have already change the path of storage driver in config/filesystems.php . Change the path from storage_path() to public_path() 'public' => [

Change voyager model

非 Y 不嫁゛ 提交于 2019-12-24 01:23:51
问题 I want to add some mutators on Voyager's User class, but I won't change anything inside vendor folder, and Voyages uses a User model inside the package. Is it possible for me to, somehow, change this? 回答1: Simple enough. Modify the default Laravel User model to <?php namespace App\Models; use TCG\Voyager\Models\User as VoyagerUser; class User extends VoyagerUser { // add custom mutators and other code in here } Then you can update app/config/voyager.php as @aimme said and have it as 'user' =>

How to use Git on Laravel with Voyager? [closed]

随声附和 提交于 2019-12-12 04:58:40
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago . Can someone help me using admin Voyager using git? For example, If you need to add new content type, how to add git for future push and deploy it on the remote server? 回答1: Git - as well as SVN, Mercurial, and others - only operates on the filesystem. MySQL and Postgres databases are not

How can I remove these things from the side menu?

妖精的绣舞 提交于 2019-12-11 15:52:45
问题 The problem is regarding the admin panel Voyager who is based on php laravel. So when I create database and follow up with adding BREAD, if I delete it, the name on the sidebar remains. Do you happen to know how I can delete it. I have tried going through most files where the info could be saved, but found nothing. It is not saved in the database either. Here is the image of the problem: https://imgur.com/43121Y2 回答1: The Voyager Menu is retrieved from the cache so this is why it still shows

Laravel Voyager admin panel showing with broken link texts

删除回忆录丶 提交于 2019-12-11 07:19:40
问题 I've just installed Voyager admin panel and the link texts appear broken, like the picture: My #voyager.php is like this -> 'multilingual' => [ /* * Set whether or not the multilingual is supported by the BREAD input. */ 'enabled' => true, /* * Set whether or not the admin layout default is RTL. */ 'rtl' => false, /* * Select default language */ 'default' => 'en', /* * Select languages that are supported. */ 'locales' => [ 'en', 'pt', ], ], I found a similar question here but without answers.

Call to a member function relationLoaded() on string on voyage admin

删除回忆录丶 提交于 2019-12-11 03:36:47
问题 I installed the voyager admin successfully from here On my client page, I created a custom registration which is derived from auth. I can register the user successfully. After I installed the voyager admin, I added a new user on client's registration form. Then, when i tried to access the http://localhost:8000/admin and then error occurred as seen on the image. Below is the image of the line 53: And below is the entire code of VoyagerUse.php <?php namespace TCG\Voyager\Traits; use Symfony

403 Forbidden Laravel on shared hosting

旧城冷巷雨未停 提交于 2019-12-10 21:41:29
问题 I have a shared hosting and I'm trying to make my laravel project works on it, I'm using voyager to the admin panel. I put my app public folder inside the /public_html and the rest of the project on the same level of the /public_html, so it looks like this: .bash_history .bash_logout .bash_profile .bashrc .cache .cpanel .htpasswds logs mail app -> my project public_ftp public_html -> where my app public folder is .ssh tmp etc ... I have managed to work almost everything, but the admin panel

No solution here works for my “Class 'PDO' not found.”

自作多情 提交于 2019-12-02 19:24:34
问题 I know there are questions with similar titles here but none seem to work for me hence the reason to create a new question. So here's the problem, i have a site that works perfectly on localhost where i am sure has PDO support but after uploading on my shared hosting i get the Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN) Class 'PDO' not found the solutions here all involve editing php.ini and installing PDO however, i am on a shared hosting without access to php