how to laravel 5.7 http id hidden
up vote
0
down vote
favorite
I am using laravel 5.7 and want to hide the id in url. Now my url show like
http://127.0.0.1:8000/add-stock/87
I want to hide this id number. Anybody example? Thank you all.
php laravel laravel-5.7
add a comment |
up vote
0
down vote
favorite
I am using laravel 5.7 and want to hide the id in url. Now my url show like
http://127.0.0.1:8000/add-stock/87
I want to hide this id number. Anybody example? Thank you all.
php laravel laravel-5.7
use method 'POST' instead of 'GET'
– Tharaka Dilshan
Oct 6 at 10:36
you can conver id to json_encode and rever it with json_decode
– Shaielndra Gupta
Oct 6 at 10:38
Route::get('/add-stock/{id}','StockController@addStOCk');
– Krishno Biswas
Oct 6 at 10:45
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am using laravel 5.7 and want to hide the id in url. Now my url show like
http://127.0.0.1:8000/add-stock/87
I want to hide this id number. Anybody example? Thank you all.
php laravel laravel-5.7
I am using laravel 5.7 and want to hide the id in url. Now my url show like
http://127.0.0.1:8000/add-stock/87
I want to hide this id number. Anybody example? Thank you all.
php laravel laravel-5.7
php laravel laravel-5.7
edited Oct 6 at 16:35
Roshana Pitigala
4,57562346
4,57562346
asked Oct 6 at 10:35
Krishno Biswas
13
13
use method 'POST' instead of 'GET'
– Tharaka Dilshan
Oct 6 at 10:36
you can conver id to json_encode and rever it with json_decode
– Shaielndra Gupta
Oct 6 at 10:38
Route::get('/add-stock/{id}','StockController@addStOCk');
– Krishno Biswas
Oct 6 at 10:45
add a comment |
use method 'POST' instead of 'GET'
– Tharaka Dilshan
Oct 6 at 10:36
you can conver id to json_encode and rever it with json_decode
– Shaielndra Gupta
Oct 6 at 10:38
Route::get('/add-stock/{id}','StockController@addStOCk');
– Krishno Biswas
Oct 6 at 10:45
use method 'POST' instead of 'GET'
– Tharaka Dilshan
Oct 6 at 10:36
use method 'POST' instead of 'GET'
– Tharaka Dilshan
Oct 6 at 10:36
you can conver id to json_encode and rever it with json_decode
– Shaielndra Gupta
Oct 6 at 10:38
you can conver id to json_encode and rever it with json_decode
– Shaielndra Gupta
Oct 6 at 10:38
Route::get('/add-stock/{id}','StockController@addStOCk');
– Krishno Biswas
Oct 6 at 10:45
Route::get('/add-stock/{id}','StockController@addStOCk');
– Krishno Biswas
Oct 6 at 10:45
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Based on your term "add-stock" you are storing data, so no need to add this /{id}
in URL, and use POST method.
Try this:
Route::post('/add-stock','StockController@addStOCk');
New contributor
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Based on your term "add-stock" you are storing data, so no need to add this /{id}
in URL, and use POST method.
Try this:
Route::post('/add-stock','StockController@addStOCk');
New contributor
add a comment |
up vote
0
down vote
Based on your term "add-stock" you are storing data, so no need to add this /{id}
in URL, and use POST method.
Try this:
Route::post('/add-stock','StockController@addStOCk');
New contributor
add a comment |
up vote
0
down vote
up vote
0
down vote
Based on your term "add-stock" you are storing data, so no need to add this /{id}
in URL, and use POST method.
Try this:
Route::post('/add-stock','StockController@addStOCk');
New contributor
Based on your term "add-stock" you are storing data, so no need to add this /{id}
in URL, and use POST method.
Try this:
Route::post('/add-stock','StockController@addStOCk');
New contributor
edited Nov 21 at 9:53
AS Mackay
1,7513816
1,7513816
New contributor
answered Nov 21 at 7:25
K. Esc
11
11
New contributor
New contributor
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52678155%2fhow-to-laravel-5-7-http-id-hidden%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
use method 'POST' instead of 'GET'
– Tharaka Dilshan
Oct 6 at 10:36
you can conver id to json_encode and rever it with json_decode
– Shaielndra Gupta
Oct 6 at 10:38
Route::get('/add-stock/{id}','StockController@addStOCk');
– Krishno Biswas
Oct 6 at 10:45