All Questions
440 questions
0
votes
0
answers
233
views
laravel Auth::logoutOtherDevices() doesn't redirect to login page?
i am using Auth::logoutOtherDevice() in laravel and it logs out user from other sessions but they need to refresh to get to login page . why Doesn't it redirect automatically to login page?
If not ...
0
votes
0
answers
372
views
Unable to Resolve Vue Components in Laravel 9 with Vue.js, Inertia, and Custom Admin Directory
I'm using Laravel 9 with vue.js and Inertia. The thing is there is a small issue that I'm facing. In my "resources/js/Pages" directory I have all the vue files. Now what I want to do is ...
1
vote
0
answers
51
views
Data Pass from controller to view
I want to display the sum of column debit. When I pass data after sum value of the debit column and store it in a variable, I pass the data from controller to my view but laravel says it's undefined. ...
0
votes
1
answer
350
views
how can i access sessions on laravel?
i can access the Session::get('LoggedUser') on the index function with no problem.
but i can't access the session when i send an axios post request to the getProjects() function.
Controller code:
...
0
votes
4
answers
2k
views
Call laravel controller from vue file
I created a component in vue file and I want to fetch data from laravel controller function.
Currently, I have used axios to fetch data. But can I directly call laravel controller function?
Thanks in ...
2
votes
0
answers
2k
views
Getting 429 (Too Many Request) in vue.js laravel
I'm using vue.js and laravel when i open edit page i get this error in my console but Update function is called on button click and bill url is also called multiple times without parameter on mounted ...
-1
votes
1
answer
558
views
Permission navigation in vuejs + laravel?
I have a campaign list page. Now I want when the user logs in, if he doesn't have access to the campaign list page, it won't show the menu and won't allow access to that url ? Give me ideas. Thanks
...
1
vote
1
answer
837
views
Edit default pagination in vuejs?
I handle vuejs + laravel
I Controller :
public function listData (Request $request)
{
$currentPage = !empty($request->currentPage) ? $request->currentPage : 1;
$pageSize = !empty($request-&...
-1
votes
1
answer
128
views
Create array in laravel passing vuejs?
$arrList = [];
foreach ($product as $val) {
$arrList[]['name'] = $val->name;
$arrList[]['quantity'] = $val->quantity;
}
return response()->json($arrList);
I am a PHP newbie, so I'm ...
0
votes
1
answer
701
views
Date format changing in vue.js
I'm using date picker :
<Datepicker :format="format" v-model="form.start" name="start"></Datepicker>
Its format is something like this :
data(){
...
0
votes
1
answer
511
views
Upload multiple images in Vue.js and Laravel
I'm trying to upload multiple files at once in vue.js and laravel, Code that i'm using is :
Vue.js code:
<input type="file" v-validate="'required'" multiple @change="...
0
votes
1
answer
20
views
upload image to server modifying name
I am building a form with laravel 5.6 and where I save a name and a user photo,
but i need the photo to be stored with the username.
I show the code of my store
public function store(Request $request)
...
1
vote
2
answers
2k
views
How to show Array of errors in Vue.js ? Backend Validation with Laravel
I have some complex data and I want to show the validation error array data in vue file but I can not do it because I have got some data that has an index and showing like contacts.0.name: ["....&...
0
votes
0
answers
383
views
How to Upload pdf, xls, xlsx, doc, docx in Laravel and Vue.js
My Code is below but it's not working. I can upload Image with base64 formate and successfully store on Laravel backend but I'm struggling to upload other file formates in Laravel and vue.js. Anyone ...
0
votes
2
answers
1k
views
How to pass multiple value with key to url using vue.js
I have this attributes data
for(var k = 0;k<this.form.fields.length;k++)
{
this.dynamic_fields.push({attribute_id:attributes[k].id,value: ...