How to pass csrf token from android to laravel with method post?

|
AlaaDq 2019-11-22 16:50:20
i want know what way i should use
DesolatorMagno 2019-11-22 16:55:53
What use case you have for the multi auth?
AlaaDq 2019-11-22 16:59:30
i only need
student teachers
AlaaDq 2019-11-22 16:59:46
tow types
AlaaDq 2019-11-22 16:59:58
of user
DesolatorMagno 2019-11-22 17:05:01
Uhm, wrong question, you know what it mean multi auth?
You could do what you say easily using roles and permission.
DesolatorMagno 2019-11-22 17:06:23
Multi auth is more like that a user have different permission depending in the context.
AlaaDq 2019-11-22 17:07:37
i think u are right
DesolatorMagno 2019-11-22 17:15:27
I am finishing a app with 7 kind of user, 1 normal panel and 2 admin panel, and I didn’t needed multi.
redamakhchan 2019-11-22 18:01:28
Any one is using Laravel-Admin ?
redamakhchan 2019-11-22 18:01:57
Need a help with : $form->embeds
redamakhchan 2019-11-22 18:02:22
How to do the callback, on doc they wrote : “Callback function inside the form element to create the method call and the outside is the same.”
redamakhchan 2019-11-22 18:02:43
laravel_discuss-18985.jpg

redamakhchan 2019-11-22 18:39:24
Idea where I need Embed Form is For a Circuit Table I need “Personal Info” (many fields).. So personal info is json type..
Patricklab 2019-11-22 19:10:40
is there anyone here very good which systems in laravel
ManojKiranAppathurai 2019-11-22 19:11:31
Patricklab 2019-11-22 19:10:40
is there anyone here very good which systems in laravel

https://t.me/joinchat/NRta8Bb6pikEy6Rp2UX-fw

ManojKiranAppathurai 2019-11-22 19:11:44
Join this group
Kistlak 2019-11-22 20:08:12
I have a form which uses GET method. When I submit the form as usual I can see all the variables in the address bar. But, Now I want to customize this URL which means I want to remove the variables and show only the entered data.

What I get –
http://127.0.0.1:8000/TestReWriteForm?_token=Wktm2TZycmEROtysjNVLuDzQZWYU4zROZ8bHeOTv&username=Kistlak&district=Galle

What I want –
http://127.0.0.1:8000/TestReWriteForm/Wktm2TZycmEROtysjNVLuDzQZWYU4zROZ8bHeOTv/Kistlak/Galle

Then I tried to do this using .htaccess like below. But, nothing happens. No errors or no success.

RewriteEngine On RewriteRule ^TestReWriteForm/([0-9a-zA-Z_-]+)/([0-9a-zA-Z_-]+)/([0-9a-zA-Z_-]+) TestReWriteForm?_token=$1&username=$2&district=$3 [L]

How can I do this using this method or any other method ??

shrirangjoshi 2019-11-22 22:01:42
Kistlak 2019-11-22 20:08:12
I have a form which uses GET method. When I submit the form as usual I can see all the variables in the address bar. But, Now I want to customize this URL which means I want to remove the variables and show only the entered data.

What I get –
http://127.0.0.1:8000/TestReWriteForm?_token=Wktm2TZycmEROtysjNVLuDzQZWYU4zROZ8bHeOTv&username=Kistlak&district=Galle

What I want –
http://127.0.0.1:8000/TestReWriteForm/Wktm2TZycmEROtysjNVLuDzQZWYU4zROZ8bHeOTv/Kistlak/Galle

Then I tried to do this using .htaccess like below. But, nothing happens. No errors or no success.

RewriteEngine On RewriteRule ^TestReWriteForm/([0-9a-zA-Z_-]+)/([0-9a-zA-Z_-]+)/([0-9a-zA-Z_-]+) TestReWriteForm?_token=$1&username=$2&district=$3 [L]

How can I do this using this method or any other method ??

If you are using laravel then you can send the variables as route parameters

Route::get(‘user/{id}’, function ($id) {
return ‘User ‘.$id;
});

Something like this

Kistlak 2019-11-22 22:09:38
shrirangjoshi 2019-11-22 22:01:42
If you are using laravel then you can send the variables as route parameters

Route::get(‘user/{id}’, function ($id) {
return ‘User ‘.$id;
});

Something like this

In this case, I use fresh form. I should use post method in this case. But, my client need to show variables in the address bar with customized.
Then I used <form action=”{{route(“AddNow”)}}” method=”get”> If I am going to change the route with variables , I should change the action here. How can do it , before enter the inouts ??

Mani 2019-11-22 22:25:58
Need key for phpstorm 2019.2.5. Any help will be really appreciated.
shrirangjoshi 2019-11-22 22:58:32
Kistlak 2019-11-22 22:09:38
In this case, I use fresh form. I should use post method in this case. But, my client need to show variables in the address bar with customized.
Then I used <form action=”{{route(“AddNow”)}}” method=”get”> If I am going to change the route with variables , I should change the action here. How can do it , before enter the inouts ??

You will have to pass variables to action like this

<form action=”{{ route(‘test.route’, [$params_id]) }}” method=”GET” >

Route file
Route::get(‘/testing/{id}’, ‘SomeController@someAction’);

shrirangjoshi 2019-11-22 23:30:03
dineshmali164 2019-11-22 14:43:30
I Want to learn Rest API in laravel please suggest me
Thanks in advance

https://bitfumes.com/courses/laravel/laravel-restful-api

Laravel RESTFul APIhttps://bitfumes.com
Create Laravel Ecommerce RESTful API using Laravel API Resource (new in laravel 5.5) instead of Fractal Package.
Here we do OAuth authentication with Passport Package and also create full CRUD part for Products and its reviews.
Watch entire series to master API. All the best
Blast06 2019-11-23 04:02:59
Guys, how do you handle tokens, i mean, when and how do you refresh tokens?
ravimakwana015 2019-11-23 07:06:38
https://youtu.be/NVQ-Kuo3lrw

Multiple Authentication in Laravel 5.8 – Hindi Part 2YouTube
Part – 2
ravimakwana015 2019-11-23 07:06:38
https://youtu.be/a0ijrdHKTfw

Multiple Authentication in Laravel 5.8 – Hindi Part 1YouTube
https://laravel-news.com/laravel-5-4-key-too-long-error
ravimakwana015 2019-11-23 07:06:39
https://youtu.be/RSUxkdOM_SA

Multiple Authentication in Laravel 5.8 – Hindi Part 3 | Rocking With TechYouTube
https://stackoverflow.com/questions/52815499/fatalthrowableerror-call-to-undefined-method-app-exceptions-handlerunauthentic
Kistlak 2019-11-23 08:29:08
shrirangjoshi 2019-11-22 22:58:32
You will have to pass variables to action like this

<form action=”{{ route(‘test.route’, [$params_id]) }}” method=”GET” >

Route file
Route::get(‘/testing/{id}’, ‘SomeController@someAction’);

This is not a form which uses update data. This is a form which uses insert data. Then how can I pass parameters with action ??

DesolatorMagno 2019-11-23 08:34:45
Google knows.
Erfanhosseinpoor 2019-11-23 08:54:59
Hi friends whats the problem with the code written in app.js?
Erfanhosseinpoor 2019-11-23 08:55:12
Erfanhosseinpoor 2019-11-23 08:54:59
Hi friends whats the problem with the code written in app.js?

require(‘./bootstrap’);

window.Vue = require(‘vue’);
window.VueRouter = require(‘vue-router’).default;
window.VueAxios = require(‘vue-axios’).default;
window.Axios = require(‘axios’).default;

let AppLayout= require(‘./components/App.vue’);

//show list posts template
const ListPosts=Vue.component(‘Listposts’, require(‘./components/post/ListPosts.vue’));
//add post template
const AddPost=Vue.component(‘AddPost’, require(‘./components/post/AddPost.vue’));
//edit post template
const EditPost=Vue.component(‘EditPost’, require(‘./components/post/EditPost.vue’));
//delete post template
const DeletePost=Vue.component(‘DeletePost’, require(‘./components/post/DeletePost.vue’));
//view a post template
const ShowPost=Vue.component(‘ShowPost’, require(‘./components/post/ShowPost.vue’));

Vue.use(VueRouter , VueAxios , axios);

const routes =[

{name :ListPosts , path: ‘/admin/posts’, component: ListPosts },
{name :AddPost , path: ‘/admin/post/add’, component: AddPost },
{name :EditPost , path: ‘/admin/post/edit/:id’, component: EditPost },
{name :DeletePost , path: ‘/admin/post/delete/:id’, component: DeletePost },
{name :ShowPost , path: ‘/admin/show/post/:id’, component: ShowPost },
];
const router = new VueRouter({mode:’history’ , routes : routes});

new Vue(
Vue.util.extend(
{ router },
AppLayout
)
).$mount(‘#app’);

Erfanhosseinpoor 2019-11-23 08:55:49
Erfanhosseinpoor 2019-11-23 08:55:12
require(‘./bootstrap’);

window.Vue = require(‘vue’);
window.VueRouter = require(‘vue-router’).default;
window.VueAxios = require(‘vue-axios’).default;
window.Axios = require(‘axios’).default;

let AppLayout= require(‘./components/App.vue’);

//show list posts template
const ListPosts=Vue.component(‘Listposts’, require(‘./components/post/ListPosts.vue’));
//add post template
const AddPost=Vue.component(‘AddPost’, require(‘./components/post/AddPost.vue’));
//edit post template
const EditPost=Vue.component(‘EditPost’, require(‘./components/post/EditPost.vue’));
//delete post template
const DeletePost=Vue.component(‘DeletePost’, require(‘./components/post/DeletePost.vue’));
//view a post template
const ShowPost=Vue.component(‘ShowPost’, require(‘./components/post/ShowPost.vue’));

Vue.use(VueRouter , VueAxios , axios);

const routes =[

{name :ListPosts , path: ‘/admin/posts’, component: ListPosts },
{name :AddPost , path: ‘/admin/post/add’, component: AddPost },
{name :EditPost , path: ‘/admin/post/edit/:id’, component: EditPost },
{name :DeletePost , path: ‘/admin/post/delete/:id’, component: DeletePost },
{name :ShowPost , path: ‘/admin/show/post/:id’, component: ShowPost },
];
const router = new VueRouter({mode:’history’ , routes : routes});

new Vue(
Vue.util.extend(
{ router },
AppLayout
)
).$mount(‘#app’);

Route::group([‘namespace’ => ‘Admin’, ‘middleware’ => [‘auth’, ‘UserLevel’],’prefix’ => ‘admin’], function () {
Route::get(‘/posts’, ‘PostController@home’);
Route::resource(‘/post’, ‘PostController’);
});

Erfanhosseinpoor 2019-11-23 09:28:28
posts has a home that points to VueApp .Blade
That means my main root is the home method
svn9999 2019-11-23 11:52:47
Hello everyone,
Can i ask one problem regarding laravel 4.2 i have on problem regarding authentication it still overried auth session even i login two different broswer or different machince.
Example: first time broswer A i login with username: abc and password: 123456 and then i open another broswer B and login with username: def and password=89878 but when i go to broswer A and refresh it still overried all information from second login is username:def

Who ever solve this problem please help?

svn9999 2019-11-23 12:05:51
One more issue is php artisan queue:work not finding jobs for execute on aws server.
RayhanYulanda 2019-11-23 21:11:46
https://stackoverflow.com/questions/59010140/left-join-2-times-raw-query-laravel-doesnt-work-laravel/59010417

Left join 2 times raw query laravel doesn’t work (Laravel)Stack Overflow
I tried my raw query sql in laravel and i need to left join it 2 times but the print out is wrong. It different from mysql. I’ve tried in mysql and it works well

this is my code :

$tabel = DB::SE…

RayhanYulanda 2019-11-23 21:12:02
RayhanYulanda 2019-11-23 21:11:46
https://stackoverflow.com/questions/59010140/left-join-2-times-raw-query-laravel-doesnt-work-laravel/59010417

i need help…

Ftmbahari 2019-11-23 21:26:59
Hi dear
Is sequel pro available for Windows?
R_IT_Geek 2019-11-23 22:21:35
Ftmbahari 2019-11-23 21:26:59
Hi dear
Is sequel pro available for Windows?

What is sequel pro?

Ftmbahari 2019-11-23 22:25:14
R_IT_Geek 2019-11-23 22:21:35
What is sequel pro?

That’s a local db

R_IT_Geek 2019-11-23 22:31:48
Ftmbahari 2019-11-23 22:25:14
That’s a local db

https://stackoverflow.com/questions/6817551/sequel-pro-alternative-for-windows

Sequel Pro Alternative for WindowsStack Overflow
Well my macbook pro is kind of not cutting it for me anymore and I have a perfectly good Windows Laptop I would actually rather use but I cannot find a reliable replacement for my SQL client. So I am
Mahdi_khani 2019-11-23 23:14:35
Hi
How to pass csrf token from android to laravel with method post?
abdulmejidshemsu 2019-11-24 02:18:54
Mahdi_khani 2019-11-23 23:14:35
Hi
How to pass csrf token from android to laravel with method post?

use API route

Erfan1999_sh 2019-11-24 02:40:49
laravel_discuss-19048.jpg
این print_r $all هستش
Erfan1999_sh 2019-11-24 02:40:49
laravel_discuss-19047.jpg
سلام من هرچی میخوام اینو پاس بدم به کامپوننت نمیشه کنسول لاگشم که میگیرم هیچی نشون نمیده جیسان اینکدشم کردم بازم نشد مشکل چیه؟
prabhjd 2019-11-24 04:45:56
laravel_discuss-19051.jpg

prabhjd 2019-11-24 04:46:48
Hi guys can anyone tell me how can I use cookies to save last logged in user?
prabhjd 2019-11-24 04:47:54
When a user login and logout, he should get his data from cookies
prabhjd 2019-11-24 04:56:21
laravel_discuss-19054.jpg
2. I have tried to add dynamic data in pie chart but can anyone tell me why is it not showing which party got how many votes
prabhjd 2019-11-24 04:56:43
laravel_discuss-19055.jpg
2. This is my table
|