forked from mirror/pixelfed
Update ProfileController
This commit is contained in:
parent
b3540f189d
commit
184097893e
|
@ -3,8 +3,14 @@
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use App\{Profile};
|
||||||
|
|
||||||
class ProfileController extends Controller
|
class ProfileController extends Controller
|
||||||
{
|
{
|
||||||
//
|
public function show(Request $request, $username)
|
||||||
|
{
|
||||||
|
$user = Profile::whereUsername($username)->firstOrFail();
|
||||||
|
$timeline = $user->statuses()->orderBy('id','desc')->paginate(10);
|
||||||
|
return view('profile.show', compact('user', 'timeline'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue