pixelfed/app/Http/Controllers/TimelineController.php

21 wiersze
388 B
PHP
Czysty Zwykły widok Historia

2018-04-16 01:56:17 +00:00
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
2018-04-19 05:56:59 +00:00
use App\{Status, User};
2018-04-16 01:56:17 +00:00
class TimelineController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function personal()
{
2018-04-19 05:56:59 +00:00
$timeline = Status::orderBy('id','desc')->paginate(10);
return view('timeline.personal', compact('timeline'));
2018-04-16 01:56:17 +00:00
}
}