This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\File; | |
| use Tightenco\Ziggy\Ziggy; | |
| class GenerateRoutesCommand extends Command | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const loop = (() => { | |
| const recur = (callback, count, i=0) => { | |
| if (i == count-1) return callback(i); | |
| callback(i); | |
| return recur(callback, count, i+1); | |
| }; | |
| return (callback, count) => { | |
| if (count > 0) return recur(callback, count); | |
| }; | |
| })(); |