First interect with http request and display the view or any database calculation.
Command : php artisan make:controller controler-name
<?php
namespace AppHttpControllers;
use AppModelsUser;
use IlluminateViewView;
class UserController extends Controller
{
/**
* Show the profile for a given user.
*/
public function show(string $id): View
{
return view("user.profile");
}
}
© www.thecoderjob.com. All Rights Reserved. Designed by HTML Codex