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\Mcp\Tools; | |
| use App\Models\Sale; | |
| use Carbon\CarbonImmutable; | |
| use Illuminate\Contracts\JsonSchema\JsonSchema; | |
| use Illuminate\JsonSchema\Types\Type; | |
| use Laravel\Mcp\Request; | |
| use Laravel\Mcp\Response; |
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\Controller; | |
| use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |
| use Symfony\Component\HttpFoundation\JsonResponse; | |
| use Symfony\Component\Routing\Attribute\Route; | |
| final class ProductController extends AbstractController | |
| { |
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 | |
| public function store(Request $request, Content $content) | |
| { | |
| $video = $content->videos()->create([ | |
| 'code' => Str::uuid(), | |
| 'name' => $request->name, | |
| ]); | |
| return $video; |
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 | |
| Schema::create('videos', function (Blueprint $table) { | |
| $table->id(); | |
| $table->foreignId('content_id') | |
| ->constrained() | |
| ->cascadeOnDelete(); | |
| $table->uuid('code'); |
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
| <script setup lang="ts"> | |
| import InputError from '@/components/InputError.vue'; | |
| import Button from '@/components/ui/button/Button.vue'; | |
| import Input from '@/components/ui/input/Input.vue'; | |
| import InputLabel from '@/components/ui/label/Label.vue'; | |
| import AppLayout from '@/layouts/AppLayout.vue'; | |
| import { type BreadcrumbItem } from '@/types'; | |
| import { Head, useForm } from '@inertiajs/vue3'; |
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\Jobs; | |
| use App\Events\VideoEncodingFinished; | |
| use App\Events\VideoEncodingProgress; | |
| use App\Events\VideoEncodingStart; | |
| use App\Models\Video; | |
| use FFMpeg\FFProbe; | |
| use Illuminate\Bus\Batchable; |
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\Traits; | |
| use Spatie\Sluggable\HasSlug; | |
| use Spatie\Sluggable\SlugOptions; | |
| trait Sluggable | |
| { | |
| use HasSlug; |
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
| <script setup> | |
| import NavLink from '@/components/TextLink.vue'; | |
| defineProps({ | |
| meta: Object, | |
| }); | |
| </script> | |
| <template> | |
| <div id="pagination" class="flex justify-end py-2 pr-10"> |
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 Database\Factories; | |
| use Illuminate\Database\Eloquent\Factories\Factory; | |
| /** | |
| * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Content> | |
| */ | |
| class ContentFactory extends Factory |
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\Http\Controllers\Auth; | |
| use App\Http\Controllers\Controller; | |
| use App\Http\Requests\Auth\RegisterRequest; | |
| use App\Models\User; | |
| use Illuminate\Http\Request; | |
| class RegisterController extends Controller |
NewerOlder