1,295 questions
1
vote
1
answer
2k
views
My changes made in Dashboard.vue aren't being saved (Laravel Jetstream Inertia.js)
This is my first day working with this so I'm not sure what's going on.
When I start up my laravel project and add jetstream(inertia.js) and make changes to my resources/js/Dashboard.vue file, I open ...
1
vote
0
answers
1k
views
Getting data from local caching in Inertia.js
Comming from here: Inertia Local State Caching
How do I get data from my local state caching on a new page?
Example:
remember: ['cart'],
data() {
return {
sending: false,
cart: {
...
0
votes
1
answer
2k
views
VueJs: Inertia event listener not working
I am trying to use the event listeners with inertia.post, however I can't get it to do anything.
this.$inertia.post('/email/store', data, {
onStart: () => this.sending = true,
onFinish: () ...
0
votes
1
answer
524
views
Laravel Inertia controller per page or per model?
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". ...
6
votes
4
answers
19k
views
Laravel 8 jetstream stack inertia. Redirect to Home after Login, instead of users choice
What happens to me is that if the user puts the url: project.test/med, the system redirects to Login but then it does not redirect to dashboard but to med. In RedirectIfAuthenticated the expression ...
0
votes
1
answer
139
views
Pattern to add user-interface relevant data to Vue array props?
If props are not editable how does one go about adding data relevant to the user interface in a local component?
Say you receive an Array of blog posts, each post can be iterated in the interface with ...
0
votes
1
answer
1k
views
Laravel Jetstream Route Test With Inertia Returns Error Code 500
Out the test it works, I can visit the page and the controller wroks fine. I wrote the following test:
public function test_logged_user_is_not_redirected()
{
PartnerFactory::new()->create();
...
2
votes
0
answers
647
views
How to return back to a paginated page?
Using Laraver Inertia Vue
I use a vue with a paginated list of posts. For each post I only load a few column from the database such as title and author. Then I visit url to load the details of a ...
0
votes
2
answers
6k
views
How to update a table record using laravel inertia and vue.js
I use Laravel 8 inertia and vue
I want to update a post and I use this component in a main vue
<template>
<div class="container p-3 bg-green-600 flex flex-col">
<div class=...
1
vote
2
answers
5k
views
How to use Ziggy with React and Inertia
How can I call in a React component the JavaScript route function generated by the Ziggy's @route directive ?
The route function is generated at runtime so it's impossible to import it beforehand in ...
5
votes
2
answers
3k
views
Laravel Fortify Return Inertia::render() instead of a blade view
I'm currently building a SPA with vue and installed jetstream (that comes with fortify) and using inertiajs to get my vue components. Is there a way to use inertia::render('') when i use Fortify::...
1
vote
3
answers
5k
views
I can't add Vue page transition with inertia js in vue js
The transition Does not work in inertia page . if add appLayout between transition tag . its working . but all content gives transition.
Dashboard.vue
<template>
<admin-layout>
<h1&...
1
vote
1
answer
2k
views
Laravel inertia return all posts with limited number on columns and adding the user from a belongsTo relationship
Using Laravel, inertia, vue I would like to return all Posts with only the necessary columns in my index but I would like to add the user from a belongsTo relationship
Here is what I tried
Test one : ...
3
votes
6
answers
10k
views
Laravel 8 (Inertia js) - Getting Vue error 'app.js:30559 [Vue warn]: Error in created hook: "Error: Cannot find module...'
I have setup a Laravel 8 installation that uses Jetstream (inertia js stack). All Jetstream provided views are working correctly.
The issue is when I create a new Route that renders a new Vue template,...
1
vote
1
answer
771
views
Laravel 8, Jetstream, inertia: Looking for app in the DOM
OK, trying to move our Vuetify app to L8, Jetstream and the inertia stack. I see this line in ./resources/js/app.js
const app = document.getElementById('app');
It's grabbing the app element in the ...
2
votes
3
answers
7k
views
Vue component does not render when I use <inertia-link> tag
When I use I use the <inertia-link> the test.vue child component does not render but it renders if I remove those tags. Any ideas as to what I am doing wrong?
test.vue
<template>
<...
12
votes
7
answers
15k
views
Change InertiaJS-Laravel default RootView
I am using Laravel 8 and I have installed InertiaJS, but in my directory resources/views/ I have a single file called index.blade.php which I plan to use with InertiaJS.
By default, InertiaJS looks ...
0
votes
1
answer
3k
views
laravel jetstream request api route middleware protected api:sanctum return unauthenticated response
I have a problem with 'domain' => env ('SESSION_DOMAIN', null) in the session.php file. When set SESSION_DOMAIN value in .env file, for example
SESSION_DOMAIN=mysite.test
login don't works and ...
0
votes
0
answers
313
views
Integer ID's Being Rounded in Vue Component
I have a Laravel application that produces 17 digit (64 bit) numeric IDs (laravel-snowflake)
When this collection is rendered into an Inertia Vue component as a prop, the last 2 digits are being ...
8
votes
1
answer
2k
views
Can you use Inertiajs with React Native?
I'm just about to start developing my first iOS app with React Native and wasn't sure if Inertiajs would be suitable.
Thanks for your help!
0
votes
1
answer
1k
views
Custom devise registration
I'm trying to make an application with devise auth, but i wanna use Inertia + VueJS instead of Rails views. I'm having a hard time to make this work, so far i made the custom controllers using rails ...
0
votes
1
answer
571
views
How does Inertia.js connect my Laravel backend on a domain name with my Vue.js project on another domain name?
How does Inertia.js connects my Laravel backend on a domain with my Vue.js project on another domain ?
Or am I trying to do something Inertia.js is not made for ?
1
vote
3
answers
3k
views
Laravel Inertia (Vue) - Authenticate without Redirect
I'm making a normal Inertia post to a base Laravel login route:
submit() {
this.$inertia.post("/login", {
email: this.emailAddress,
password: this.password,
}, {
...
0
votes
1
answer
5k
views
How to configure Tailwind + Postcss with VueJS in Laravel InertiaJS
I am new to setting up the tailwind/postcss configuration using Intertia.js/Vue.js and would appreciate some guidance with my configuration files!
My goal is to be able to write postcss/scss style ...
0
votes
1
answer
282
views
Flash data not being written to session
Im using Laravel 7.12.0 and my flash session data doesn't appear to be working at all either using
request()->session()->flash('status', 'Task was successful!');
or
return redirect()->...
0
votes
1
answer
702
views
WebpackChunkName uses current working directory instead of web root
I'm running a Vue app with inertia js.
My application is inside a folder in the web root like below:
/
-myVueApp/
-webpack.config.js
-includes/
-js/
-pages/
In my app....
2
votes
2
answers
10k
views
Paginate results with Vue.Js / Inertia.js and Laravel
I'm trying to paginate data from Laravel in Vue.Js. I'm using Inertia.js as well.
In my Laravel Controller I have:
$data['participants'] = User::with('groups')->select('id', 'name')->...
2
votes
2
answers
6k
views
InertiaJS How to use "Nested Layouts" for tabs?
I was hoping to get some additional information about the "Nested Layouts" in InertiaJS. The documentation is very scarce on it and I can barely find any sort of examples showing how it works, and the ...
0
votes
1
answer
5k
views
Why am getting unexpected redirect (302) error when saving the data in Laravel?
In my application, I am getting the error 302 when trying to save the data. I am posting my codes here, please someone look into this and help me.
HolidayAdd.vue
<template>
<layout&...
0
votes
2
answers
544
views
Why am getting method not allowed error when saving the data in Laravel?
In my application, I am getting the error method not allowed when trying to save the data. I am posting my codes here, please someone look into this and help me.
HolidayAdd.vue
<template>
...
52
votes
5
answers
87k
views
Cleanup memory leaks on an Unmounted Component in React Hooks
I'm new using React, so this might be really simple to achieve but I can't figure it out by myself even though I've done some research. Forgive me if this is too dumb.
Context
I'm using Inertia.js ...
0
votes
1
answer
485
views
Vue data value not updating for in function use
So i'm trying to lazy load articles with infinite scrolling, with inertia-vue and axios, backend is laravel 6.0. Since I don't want to do unnecessary request i'm giving over the total amount of ...
0
votes
2
answers
2k
views
Laravel API Resource timestamp "Call to a member function format() on null" [duplicate]
I'm using Laravel's API Resource functionality to format my responses nicely for the client, but the trouble I'm having is with the code below;
/**
* Transform the resource collection into an array....
1
vote
2
answers
4k
views
How to send information from the vue.js file to the controller like an id? Laravel - Inertia-vue
I'm trying to open a page from a button, but I need to send the id of the item where the button is in. For context this is a discussion forum page, in the users dash they are shown the forums they can ...
0
votes
1
answer
2k
views
What is the best way to make a post page with comments. Laravel - vue.js - inertia-vue
I'm trying to make a discussion forum with comments, this is what it looks like
This page has the route
Route::get('forums/comment/{id}', 'ForumController@comment');
In the controller
public ...
1
vote
2
answers
4k
views
How to correctly redirect with inertia in laravel?
I'm trying to redirect to another page with the click of a button, but for some reason it's not working, I'm not sure why?
Currently it opens up a window inside the main page not even a real ...
1
vote
1
answer
4k
views
Why are my props empty in my laravel-vue-inertia project?
I"m starting a new project and I'm not sure why the props in my vue devtools is empty? Where is the information about the user I'm logged in as? Do I have to set that option up somewhere?
This is my ...
9
votes
1
answer
28k
views
Correctly redirect to another page with inertia?
I"m trying to redirect on click to another page, for some reason it's not working. This is the code on my vue where the redirect buttons are. I've tried two different ways and neither are working....
1
vote
1
answer
3k
views
How to display on an element-ui table data from other tables and display yes or no depending on an id
I'm trying to display in a table the infomation about a certain item in this case it's a question, information like what section it belongs to, which is the response type, and if the question is ...
4
votes
2
answers
729
views
How to bring the relationships of a certain model to display them in a table with Inertia::render?
I'm trying to get the relationships for a model from the controller so be able to display the relationship not as a id but as that id's name or type or whatever it might be. In this case I'm trying to ...
1
vote
1
answer
349
views
How to solve this error: explode() expects parameter 2 to be string, object given?
I'm trying to setup different user types and their respective permissions in my AppServiceProvider.php in my project, and I get the error
explode() expects parameter 2 to be string, object given
...
0
votes
1
answer
2k
views
How to go back on click of a button from the .vue without opening a new window?
I'm trying to create a button that goes back to the login, or redirects to /login, currently I've tried doing it both with el-button and inertia-link, they both work but not how I would like.
This ...
5
votes
1
answer
19k
views
How to setup inertia on my project, gives me an error when I try and load the login page
I'm trying to setup Inertia to use in my Laravel project but it gives me errors? Where is my mistake?
I installed Inertia with this command
composer require inertiajs/inertia-laravel
followed the ...
9
votes
5
answers
12k
views
Accessing Laravel's .env variables inside Inertia.js Vue files
I am starting with the Inertia Laravel example https://github.com/drehimself/inertia-example
which is nothing but Laravel with Vue in one monolithic codebase, using Inertia.js:
https://github.com/...
1
vote
1
answer
827
views
Getting Inertia.js and Xampp to work together
I have tried to set up a project with Laravel, Vue, and Inertia. I am developing on Windows using xampp.
I have configured C:/xampp/apache/conf/extra/httpd-vhosts.conf with the following:
<...