How to redirect to Vue route from middleware?

|
ErgashevXurshid 2019-07-10 09:35:15
laravel_discuss-8535.jpg

ErgashevXurshid 2019-07-10 09:36:31
Plz help me. I created class and registered but not working
StanleyMasinde 2019-07-10 10:06:47
Marvixino 2019-07-10 04:49:17
Not doable from middleware

This is JavaScript

TeleMadDave 2019-07-10 10:39:34
ErgashevXurshid 2019-07-10 09:36:31
Plz help me. I created class and registered but not working

Hello. You should show class TrackingClass.

ErgashevXurshid 2019-07-10 10:41:42
Thanks bro. Now working. I wrote incorrect functionπŸ™ˆ
Marvixino 2019-07-10 10:42:28
StanleyMasinde 2019-07-10 10:06:47
This is JavaScript

I know this is js.
Anyone can help?

TeleMadDave 2019-07-10 10:43:24
Easy)
AzriFakhrullah 2019-07-10 11:19:35
Hai, may i ask, how do i export large data in csv/txt? currently i got 503 error when i try to export 12 years data
Dmitry Pavlichenko 2019-07-10 11:27:15
AzriFakhrullah 2019-07-10 11:19:35
Hai, may i ask, how do i export large data in csv/txt? currently i got 503 error when i try to export 12 years data

Hey) For example, you can split data into parts and proceed them one by one)

Dmitry Pavlichenko 2019-07-10 11:30:16
AzriFakhrullah 2019-07-10 11:19:35
Hai, may i ask, how do i export large data in csv/txt? currently i got 503 error when i try to export 12 years data

You can write a client script which will run a server script multiple times. And every time server will process a new portion of data.

Dmitry Pavlichenko 2019-07-10 11:33:23
AzriFakhrullah 2019-07-10 11:19:35
Hai, may i ask, how do i export large data in csv/txt? currently i got 503 error when i try to export 12 years data

Or… u can run a cron job)

AzriFakhrullah 2019-07-10 11:36:14
Dmitry Pavlichenko 2019-07-10 11:27:15
Hey) For example, you can split data into parts and proceed them one by one)

You mean by chunk? i already tried that but we have problem with relationship.

AzriFakhrullah 2019-07-10 11:36:40
Dmitry Pavlichenko 2019-07-10 11:30:16
You can write a client script which will run a server script multiple times. And every time server will process a new portion of data.

I can try this, so i will create a javascript to run the process severaltime

AzriFakhrullah 2019-07-10 11:39:14
laravel_discuss-8550.jpg

AzriFakhrullah 2019-07-10 11:39:16
laravel_discuss-8551.jpg

AzriFakhrullah 2019-07-10 11:39:19
this is how the code looks like
AzriFakhrullah 2019-07-10 11:40:37
Im using maatwebsite to export to excel and just response for txt
vikaskumar_99 2019-07-10 14:22:13
Could you pls tell me what’s the meaning of note?
PHP Begginer 2019-07-10 16:36:50
I am pushing my code to the github but i get the following error on the screen
PHP Begginer 2019-07-10 16:37:19
laravel_discuss-8561.jpg

PHP Begginer 2019-07-10 16:37:26
Please assist
richitorres 2019-07-10 18:03:55
PHP Begginer 2019-07-10 16:36:50
I am pushing my code to the github but i get the following error on the screen

git push origin master or your branch !

PHP Begginer 2019-07-10 18:23:52
Still slowing the same msg
senhorY 2019-07-10 18:25:59
Seems to me your local repository is corrupted
PHP Begginer 2019-07-10 18:27:19
$ git push origin master
error: object file .git/objects/83/b24c9fc9947f5bee180737f6256c7232325b31 is empty
fatal: loose object 83b24c9fc9947f5bee180737f6256c7232325b31 (stored in .git/objects/83/b24c9fc9947f5bee180737f6256c7232325b31) is corrupt
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
senhorY 2019-07-10 18:32:35
Have your computer turned off while doing some git operation?
iaminevitable 2019-07-10 18:42:46
EdcbaoO 2019-07-09 11:09:32
Hi guys… Anyone beginner here wants to practice Laravel with us.. As we will start applying online courses in specific time then create our own projects later.. The idea is just to get motivated together and help each other in the process

I am started learning

PHP Begginer 2019-07-10 18:59:31
senhorY 2019-07-10 18:32:35
Have your computer turned off while doing some git operation?

no

Marvixino 2019-07-10 19:54:49
StanleyMasinde 2019-07-10 03:11:04
Because /login returns a view

How to fix it?

StanleyMasinde 2019-07-10 19:55:24
Marvixino 2019-07-10 19:54:49
How to fix it?

It is not an error that is the way it is supposed to be.

Marvixino 2019-07-10 19:56:05
StanleyMasinde 2019-07-10 19:55:24
It is not an error that is the way it is supposed to be.

Then, how to make a redirect from middleware in SPA?

StanleyMasinde 2019-07-10 19:56:08
StanleyMasinde 2019-07-10 03:16:21
Window.location.replace(“/login”)

Will redirect to the login page

Here is what I suggested

Erfanhosseinpoor 2019-07-10 20:00:21
Hi, I have a question about ajax, I’ve defined the filter for the categories, I made a form using it in two selections, first select for categories and second for filters, filters can also be parent The child, now I want to do with ajax, is that when a category is selected, in the second selector, the filters of the same category are displayed
I could send the id to the controller, but I do not know how to display the information inside the controller and for the second [Select]
Erfanhosseinpoor 2019-07-10 20:01:47
$(“#cat_list”).on(“change”, function (e) {
var numValue = $(“#cat_list”).val();

$.ajax({
url: “{{ url(‘/admin/filter/create/parent’) }}”,
type: ‘post’,
dataType: “json”,
cache: false,
data:{
_token: “{{ csrf_token() }}”,
category_id: numValue
},
success:function(data){

},
});

Erfanhosseinpoor 2019-07-10 20:02:26
Route::post(‘/admin/filter/create/parent’,’AdminFilterController@PostAjax’)->name(‘filter.ajax’);
Erfanhosseinpoor 2019-07-10 20:04:03
public function PostAjax(Request $request)
{
$cat_id = $request->category_id;
$filters = Filter::where([‘category_id’ =>$cat_id])->get();

return response()->json_encode($filters);

}

DesolatorMagno 2019-07-10 20:21:03
You can:
-Make a controller that return the list of filter
-JS that detect the change in first select and bring the info from the controller
-JS that delete everything inside the second select and populate (fill) it using js to create option element and putting them inside the second select.
moazcode 2019-07-10 22:03:55
I need course laravel and vue ??
MatPk 2019-07-10 22:06:41
which laravel course do you suggest? from lynda or udemy? and which?
Mhyeganeh73 2019-07-10 22:23:16
definitely laracasts course by jeffrey way is the best!
Mhyeganeh73 2019-07-10 22:27:13
for both laravel and Vue.js
Mhyeganeh73 2019-07-10 22:27:20
https://laracasts.com/series/learn-vue-2-step-by-step

Learn Vue 2: Step By StepLaracasts
Vue is easily one of the most exciting additions to the front-end world in many years. With its intuitive API, and the fact that it can be applied to any type of application, it’s no wonder why folks have gravitated to it as much as they have.

If you’d like to jump on board, let me show you, step by step, exactly what you need to know. It’s the best way to learn Vue!

Mhyeganeh73 2019-07-10 22:28:15
https://laracasts.com/series/laravel-from-scratch-2018

Laravel 5.7 From ScratchLaracasts
Erfanhosseinpoor 2019-07-11 03:12:40
DesolatorMagno 2019-07-10 20:21:03
You can:
-Make a controller that return the list of filter
-JS that detect the change in first select and bring the info from the controller
-JS that delete everything inside the second select and populate (fill) it using js to create option element and putting them inside the second select.

tanks πŸ‘πŸ‘πŸ‘β€οΈβ€οΈβ€οΈ

Erfanhosseinpoor 2019-07-11 03:22:04
I have a question about javascript
I got information from the database via ajax. The information received in the consol log is as follows:
[{“id”: 1, “category_id”: 3, “parent_id”: 0, “title_en”: “filter1”},
{“id”: 2, “category_id”: 3, “parent_id”: 0, “title_en”: “ddd”}]
Now I want to show these in <select> <option>. What script should I write for this? The script I wrote is as follows, but displays undefined. But the number is repeated for right.

please guide me

Erfanhosseinpoor 2019-07-11 03:22:22
success: function (data) {

var fLen = data.length;

var text = ‘<select name=”parent_id” >’;
for (var i = 0; i < fLen; i++) {
text += ‘<option value=”‘+ i.id +'” >’ + i.title_fa + ‘</option >’;
}
text += ‘</select>’;

$(‘#result’).html(text);

Erfanhosseinpoor 2019-07-11 03:25:07
laravel_discuss-8592.jpg

Marvixino 2019-07-11 03:32:20
How to redirect to Vue route from middleware?
DesolatorMagno 2019-07-11 03:46:43
Search how to insert elements in the doom using js.
Prakash D 2019-07-11 09:29:43
Guys
|