user.php 915 Bytes
<?php

use App\Http\Container\AppSection\Controllers\User\ActivityController;
use App\Http\Container\AppSection\Controllers\User\FollowerController;
use App\Http\Container\AppSection\Controllers\User\FollowingController;
use App\Http\Container\AppSection\Controllers\User\ShowController;
use App\Http\Container\AppSection\Controllers\User\VisitorController;
use Illuminate\Support\Facades\Route;

Route::get('users/{id}', ShowController::class)->whereNumber('id')->whereNumber('id');
Route::get('users/{id}/visitors', VisitorController::class)->whereNumber('id');
Route::get('users/{id}/followers', FollowerController::class)->whereNumber('id');
Route::get('users/{id}/followings', FollowingController::class)->whereNumber('id');

Route::get('user_activities', [ActivityController::class, 'index'])->middleware('emptyToNull');
Route::put('user_activities/{activity}/top', [ActivityController::class, 'changeTop']);