Initial baseline: LaraBlog core with plugin commerce surface.
Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Domain\Media\AttachmentStorageService;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class AttachmentController extends Controller
|
||||
{
|
||||
public function __construct(
|
||||
protected AttachmentStorageService $attachments,
|
||||
) {}
|
||||
|
||||
public function byId(Request $request)
|
||||
{
|
||||
$id = $request->integer('id');
|
||||
|
||||
return $this->attachments->resolveRedirectResponseById($id, $request->ip());
|
||||
}
|
||||
|
||||
public function byPath(string $path)
|
||||
{
|
||||
return $this->attachments->resolveRedirectResponseByLegacyPath($path, request()->ip());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user