Home laravel How to override View only one model in the admin laravel voyager?

How to override View only one model in the admin laravel voyager?

Author

Date

Category

like this:
https://voyager-docs.devdojo.com/customization/overriding-files

I overdered the view for one model – replaced the content for Batches – and it replaced and everyone else (I go in the category, there is the same view that for Batches).


Answer 1, Authority 100%

you need to add to the overridden file
@if (URL () - & gt; current () === URL ('Batches'))
   Overridden
@else
  Copy from the main cap and content
@endif

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions