Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
class IpAddress | |
{ | |
public string $ip; | |
public function __construct(string $ip) | |
{ | |
$this->ip = $ip; | |
} | |
public function __toString(): string |
<?php | |
namespace App\Http\Controllers\Auth; | |
use App\Http\Controllers\Concerns\ThrottlesRequests; | |
use App\Http\Requests\Auth\SignInRequest; | |
use App\Http\Requests\Auth\SignUpRequest; | |
use App\Models\User; | |
use Illuminate\Auth\Events\Registered; | |
use Illuminate\Http\RedirectResponse; |
<?php | |
namespace Tests; | |
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; | |
use JMac\Testing\Traits\HttpTestAssertions; | |
use Tests\Utils\CreateUploadedFileFromFilePath; | |
use Tests\Utils\IsRoutesAware; | |
use Tests\Utils\ResourceAsserts; |
<?php | |
class Car extends Model | |
{ | |
public function users() | |
{ | |
return $this->belongsToMany(User::class, 'car_user_role') | |
->using(CarUserRole::class) | |
->withPivot('role_id', 'user_id', 'car_id'); | |
} |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\RedirectResponse; | |
use Illuminate\Http\Request; | |
class Localized | |
{ |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Tailwind Admin Dashboard</title> | |
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"> | |
</head> |
<?php | |
namespace App\Libs; | |
use DateTime; | |
class Formatter | |
{ | |
public static function float(float $float, int $decimals = 2): string | |
{ |
#!/bin/bash | |
function error_exit { | |
echo "$1" >&2 ## Send message to stderr. Exclude >&2 if you don't want it that way. | |
exit "${2:-1}" ## Return a code specified by $2 or 1 by default. | |
} | |
if [ $# -eq 0 ]; then | |
error_exit "No input filepath given" | |
fi |