initial commit

This commit is contained in:
2025-03-26 00:53:54 -03:00
commit 86b74150a8
123 changed files with 22513 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Song;
use App\Policies\SongPolicy;
use Inertia\Inertia;
class SongController extends Controller
{
public function index()
{
// render page
Inertia::render('Songs/Index', [
'songs' => Song::all()
]);
}
public function store(Request $request)
{
// Store a new song
}
public function update(Request $request, $id)
{
// Update specified song
}
public function destroy($id)
{
// Delete specified song
$this->authorize('delete', Song::class);
$song = Song::find($id);
if ($song) {
$song->delete();
}
}
public function stream($id)
{
// Stream specified song
}
}