1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-22 07:42:41 +00:00

Update ProfileController

This commit is contained in:
Daniel Supernault 2018-04-18 23:56:33 -06:00
parent b3540f189d
commit 184097893e

View file

@ -3,8 +3,14 @@
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\{Profile};
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'));
}
}