Đã Đóng

Redirect and display message

I have an issue of redirection where this code work fine at controller A but not in controller B.

Code 1:

\Session::flash('message', 'Your payment method was declined.');

return response()

->json(['url'=>'/api/v1/error']);

The code above will invoke my laravel route

Code 2:

Route::get('error', function() { //this is my route

return \Session::get('message');

});

When I move the Code: 1 from Controller A to B the result is unfavourable. It's a small issue and you are required to work via teamviewer.

Kĩ năng: Angular.js, Laravel

Xem nhiều hơn: how to redirect to the same page with a message in php, display alert message before redirecting page php, header(location with message, how to display success message in codeigniter, how to show message box in php using javascript, codeigniter alert before redirect, php header redirect with message, redirect page after alert message javascript, detect referer display message php, display message screen seconds xaml, validate textarea empty display message, php redirect script message, display message vba macro running, display message jave, upload photo display message board, display message system tray vbnet 2005, facebook content display message box, display message search box wordpress, php redirect login message previous page, display message opening access mdb

Về Bên Thuê:
( 28 nhận xét ) Petaling Jaya, Malaysia

ID dự án: #16597761

6 freelancer đang chào giá trung bình RM54 cho công việc này

jd2203

Hello Sir, Let me introduce myself. I am Jaydeep Adesara from India. I have been working with php with Laravel framework since last 3 years. I am sure I will be able to help you on your requirement. Let's Thêm

RM52 MYR trong 10 ngày
(2 Nhận xét)
1.6
deep2566

A proposal has not yet been provided

RM46 MYR trong 1 ngày
(1 Nhận xét)
1.0
webzonenetwork80

I have experience in mostly every type of website and I will satisfy your requirements and make you have wonderful things with your idea . So I suggest you to give me an opportunity to do your job. Best regards

RM52 MYR trong 4 ngày
(1 Nhận xét)
0.0
bdrudra

"" Laravel + Angular Expert "" Hello there, Greetings of the day ! We are a small but excellent team of designer and developer. If you will hire us then I am damn sure that you will be fully satisfied with my Thêm

RM56 MYR trong 1 ngày
(0 Nhận xét)
0.0
ngu5a0ecf61afedc

Exp. in developing of web application more than 7 years. I am a senior developer experienced in creating applications using, MVC, LARAVEL, PHP, MySQL, Microsoft SQL server, Ms Access, JavaScript , ANGULAR JS

RM52 MYR trong 10 ngày
(0 Nhận xét)
0.0
RM68 MYR trong 2 ngày
(0 Nhận xét)
0.0