PHP code example of lukeraymonddowning / pest-plugin-larastrap
1. Go to this page and download the library: Download lukeraymonddowning/pest-plugin-larastrap 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/ */
lukeraymonddowning / pest-plugin-larastrap example snippets
it('points to the correct URL')
->expect(route('dashboard'))
->toBe(config('app.url').'/dashboard');
it('can access the dashboard')
->get(route('dashboard'))
->assertOk();
dataset('laravel service providers', function () {
yield from config('app.providers');
});
dataset('admin panel middleware', function () {
return Route::gatherRouteMiddleware(Route::getRoutes()->getByName('admin.dashboard')));
});