davy_yg
4 months ago
318
2
Laravel

add profile button

Posted 4 months ago by davy_yg

Hello,

I wonder why the add profile button does not work?

index.blade.php

<button class="btn btn-primary" onclick="{{ url('profile/create') }}">Add Profile</button><br><br>

web.php

Route::get('profile/create', '[email protected]')->name('profile.create');

ProfileController.php

class ProfileController extends Controller
{
	//

public function create() { return view('admin.add_profile'); } }

Please sign in or create an account to participate in this conversation.