write in pre-requrest/prepare
pm.request.addHeader('Accept: application/json')| <?php | |
| if (!function_exists('declension_key')) { | |
| /** Translation based declension function */ | |
| function declension_key(int $number, string $key, ?string $locale = null): string | |
| { | |
| $locale = $locale ?: app()->getLocale(); | |
| $words = trans('declensions.' . $key, [], $locale); |
| <?php | |
| use Illuminate\Support\Facades\File; | |
| function generateUniquePathName(string $filePath): string | |
| { | |
| $path = File::dirname($filePath); | |
| $name = File::name($filePath); | |
| $extension = File::extension($filePath); |
| <?php | |
| it('extracts video ID from YouTube URLs', function ($url, $expectedId) { | |
| expect(get_youtube_video_id($url))->toBe($expectedId); | |
| })->with([ | |
| ['https://youtu.be/dQw4w9WgXcQ', 'dQw4w9WgXcQ'], | |
| ['https://www.youtube.com/watch?v=dQw4w9WgXcQ', 'dQw4w9WgXcQ'], | |
| ['http://youtube.com/v/dQw4w9WgXcQ', 'dQw4w9WgXcQ'], | |
| ['https://www.youtube.com/embed/dQw4w9WgXcQ', 'dQw4w9WgXcQ'], | |
| ['https://www.youtube.com/shorts/dQw4w9WgXcQ', 'dQw4w9WgXcQ'], |
PhpStorm, Laravel IDEA plugin, ide.json (v1) configuration file for package jeroennoten/laravel-adminlte. Place in the root of your project. Hints for components and types from a package.
ide.json
{
"$schema": "http://laravel-ide.com/schema/laravel-ide-v1.json",
"completion": {
},
"view": {