Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help!!! Laravel 8 Error - Required parameter $imageUrl follows optional parameter $title #113

Closed
devhoussam opened this issue Jan 9, 2021 · 2 comments

Comments

@devhoussam
Copy link

devhoussam commented Jan 9, 2021

Hi I'm implement sweet-alert with laravel 8 version when I try to redirect with success message it display this error message it contain :

Image of the problem message

Required parameter $imageUrl follows optional parameter $title

My Code :

<?php

...

use RealRashid\SweetAlert\Facades\Alert;

class RegisteredUserController extends Controller
{

	...
	
    public function store(Request $request)
    {
        $request->validate([
            'name' => 'required|string|max:255',
            'email' => 'required|string|email|max:255|unique:users',
            'password' => 'required|string|confirmed|min:8',
        ]);

        Auth::login($user = User::create([
			'name' => $request->name,
            'email' => $request->email,
            'password' => Hash::make($request->password),
        ]));

        event(new Registered($user));
		
		return redirect(RouteServiceProvider::HOME)->with('success', 'Amazing! Your Account has been Created Successfully!');
    }
}

@devhoussam devhoussam changed the title Laravel 8 Error - Required parameter $imageUrl follows optional parameter $title Help!!! Laravel 8 Error - Required parameter $imageUrl follows optional parameter $title Jan 10, 2021
@realrashid
Copy link
Owner

Duplicate of #108

@realrashid realrashid marked this as a duplicate of #108 Jan 12, 2021
realrashid added a commit that referenced this issue Jan 14, 2021
@realrashid
Copy link
Owner

Fix in v3.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants