PHP code example of sinemacula / laravel-route-linter
1. Go to this page and download the library: Download sinemacula/laravel-route-linter 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/ */
sinemacula / laravel-route-linter example snippets
Route::patch('photos/{photo}/edit', [PhotoController::class, 'edit'])
->ignoreRouteLint(['R9'], 'Legacy admin UI'); // waives only R9 on this route
Route::get('legacy/getStats', LegacyStatsController::class)
->ignoreRouteLint([], 'Frozen v1 contract'); // [] = all rules