Support the ongoing development of Laravel.io →
Laravel Validation
0

try this

Route::get('redirect-with-array', function () {
return redirect('dashboard')
->with(['error' => true, 'message' => 'Whoops!']);
});
0

Why is following code not working. I am using ->with which is not working.


    return view('siteadmin.help.help', [
                'articles' => $articles,
                'categories' => $categories
            ])
                ->with('success', 'Product have been created');
0

what is error?

0

Sign in to participate in this thread!

Cloudways

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.