Questions tagged [laravel-admin]

Don't use this tag for general admin/dashboard. This tag is for encore/laravel-admin package an administrative interface builder for Laravel.

Laravel Admin is administrative interface builder for Laravel which can help you build CRUD backends just with few lines of code.

References:

72 questions
7
votes
2 answers

control array, links by role in header, laravel-admin

I use https://laravel-admin.org/docs/en/README on my site. I have a general header in the admin panel, which displays all the sections that can be edited, here is the code:
3
votes
1 answer

Laravel admin image cant access via url

I have create an app that need to upload image. I use http://laravel-admin.org/ already setup all and follow the documentation. All work, but my image cannot access via url its said 404 - Not Found when access via url. checked on explorer its…
Dicky Raambo
  • 531
  • 2
  • 14
  • 28
2
votes
2 answers

How to add new menu link to Laravel-Admin sidebar menu?

I'm using Laravel 9 with Laravel-Admin v1.8.19. And I have created successfully some crud operations with Laravel-Admin on a table named overalls. And here is the resource route according to it at app\Admin\routes.php: Route::resource('overalls',…
Pouya
  • 117
  • 1
  • 14
2
votes
0 answers

Dynamically set value for a grid column while csv export:-Laravel-admin

I have a user grid it has got a column (status) which is a dynamically created html based on another model value .When trying to export the columns as listed in the grid ,is there anyway to check the model value and set the specified column…
David
  • 380
  • 2
  • 14
2
votes
4 answers

How to save file from $request in laravel?

I have a function in controller public function upload(Request $request) { $file = $request->file('File'); $destinationPath = 'uploads'; $file->move($destinationPath,$file->getClientOriginalName()); } if i send the…
2
votes
0 answers

Laravel /admin route cannot goto another Routes, always back to /admin

I have a problem with my Admin routes, everytime I was login as admin, it always redirect to /admin, and I cannot access another routes like /articles or /users. I can only access route like /welcome or /password/reset I have tried to fix my…
2
votes
1 answer

How to get multi-auth on Laravel Passport to work?

For example, I saw an answer on this website about how you can add multi-auth to Laravel Passport https://stackoverflow.com/a/49449524/5029058 But I don't understand how a user becomes an admin in that answer? Is there like an extra row in the db…
1
vote
1 answer

Laravel admin controller

$router->get('/', 'HomeController@index')->name('home'); $router->resource('users', UserController::class); //user auth This is the command in laravel 7 to generate new controller which articles except for user but I got some issues where the error…
Sushi
  • 13
  • 3
1
vote
0 answers

How can I change the background color of columns in Laravel-admin?

I'm currently working on Laravel-admin project with laravel9. For instance, If the value = 'error', I want to change the background color of the column. Something like this pic: My code is this: $grid->column('title')->display(function…
Mia
  • 11
  • 1
1
vote
0 answers

Resizing images of related model laravel-admin

I use https://laravel-admin.org/docs/en/README on my site. I have two models Post and PostImage. In the Post model in the controller, I added fields that add images to the PostImage model, everything works and the images are saved, here is the…
1
vote
0 answers

Load image from custom server address laravel encore admin

I'm using Laravel encore admin library. In user database, my image string is stored as "/imageName.ext" And in $show of controller, I am showing image as : $show->field('image', __('Image'))->image('localhost/storage/images'); Documentation tells…
1
vote
0 answers

multiple calendar for laravel-admin grid and fullcalendar(3.1.0)

I want to display more calendars on laravel-admin grid, but fullcalendar events were accumulated, so what can I do? I think maybe can clear events before? thanks. my code like this: $grid->column('name', __('name'))->modal('calendar', function…
1
vote
2 answers

cannot replicate model with unique slug field

I cannot understand how to replicate model with unique slug field. I see success message, but this code doesn't create additional row into DB table. And no messages or exceptions in debugbar. public function handle(Model $model) { …
schel4ok
  • 634
  • 1
  • 11
  • 33
1
vote
0 answers

Does not work sortable function in laravel admin when get relation column

when I'm trying to make sorting of client.firstname for example I have an error what should I do in this situation? Who had the same problem? It has method $this->setRelationSort($this->sort['column']); but does not…
Andrey
  • 11
  • 3
1
vote
2 answers

How to get an attribute from a relation in Laravel?

This is part of my code: $form = new Form(new Shop()); $form->tab('terminal', function (Form $form) use ($id) { $form->hasMany('shopterminal', '', function (Form\NestedForm $form) { $form->text('terminal_num', 'terminal…
Martin AJ
  • 6,261
  • 8
  • 53
  • 111
1
2 3 4 5