I am little confused by how controllers in Laravel Inertia should be used. On the inertia documentation it says "With Inertia, each page in your application has its own controller". However, on most tutorials it seems to be using controllers on the model in the normal way. What's the correct way to do it?
Laravel Inertia controller per page or per model?
394 Views Asked by Wing At
1
There are 1 best solutions below
Related Questions in LARAVEL-8
- Laravel - Implementing Stripe payment gateaway - Error
- How to change Jetstream logo in Laravel 8?
- Laravel Fortify Customize Authentication Redirect
- Laravel 8 delete bootstrap/cache/config file
- 500 Internal Server Error when trying to delete mysql data record using ajax in laravel 8
- Sengrid tries to send mail to empty receipient, eventhough To is given
- Method Laravel\Passport\Bridge\AccessToken::__toString() must not throw an exception, caught InvalidArgumentException error after upgrading
- Laravel 8 multi auth using jetstream fortify?
- How can I overcome Laravel 8 template system problem
- How can I do select some columns of a relation in the resources model?
- Laravel 8 Failed to clear cache. Make sure you have the appropriate permissions
- route model binding doesn't work anymore with api package devolpment in in Laravel 8.x
- Laravel 8 Database Factories
- How to resolve RootTagMissingFromViewException error while adding new Livewire component in Laravel 8 with Jetstream
- How to validate a unique field on a record update
Related Questions in INERTIAJS
- How to return back to a paginated page?
- Laravel Jetstream Route Test With Inertia Returns Error Code 500
- Pattern to add user-interface relevant data to Vue array props?
- Laravel 8 jetstream stack inertia. Redirect to Home after Login, instead of users choice
- Laravel Inertia controller per page or per model?
- Getting data from local caching in Inertia.js
- How to upload files with inertia js and laravel 8.0
- VueJs: Inertia event listener not working
- My changes made in Dashboard.vue aren't being saved (Laravel Jetstream Inertia.js)
- Laravel 8 Jetstream Inertia is not rendering a view component
- Laravel Inertia using InertiaProgress with Axios returns: Cannot read property 'defaultPrevented' of undefined
- Inertia.js and Laravel: How does pagination state work?
- I need to restructure a InertiaJS build WebApp to become PWA and I dont know how much reengineering is needed
- React-notify, toast show as normal text on top-left corner of website
- Laravel - Inertia - ReactJS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I see there is already a project built with laravel8 and inertiajs which is already answering your questions https://github.com/inertiajs/pingcrm/tree/master/app/Http/Controllers