PHP code example of jati / ashravel
1. Go to this page and download the library: Download jati/ashravel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jati / ashravel example snippets
->withMiddleware(function (Middleware $middleware) {
$middleware->web(append: [
\Ashravel\TurboBlade\Middleware\TurboBladeMiddleware::class,
]);
})
use Ashravel\TurboBlade\Middleware\TurboBladeMiddleware;
public function logout(Request $request)
{
Auth::logout();
$response = redirect('/login');
return TurboBladeMiddleware::forceReload($response);
}
bash
php artisan vendor:publish --tag="turboblade-assets"