|
|
@ -6,7 +6,7 @@ use Illuminate\Http\Request; |
|
|
|
use Twitter; |
|
|
|
use App\Tweet; |
|
|
|
|
|
|
|
class HomeController extends Controller |
|
|
|
class DashboardController extends Controller |
|
|
|
{ |
|
|
|
/** |
|
|
|
* Create a new controller instance. |
|
|
@ -25,10 +25,12 @@ class HomeController extends Controller |
|
|
|
*/ |
|
|
|
public function index() |
|
|
|
{ |
|
|
|
$queue = Tweet::queued(); |
|
|
|
|
|
|
|
return view('home', [ |
|
|
|
'queue' => $queue |
|
|
|
]); |
|
|
|
} |
|
|
|
|
|
|
|
public function queue() { |
|
|
|
$queue = Tweet::queued(); |
|
|
|
return response()->json(['queue'=>$queue]); |
|
|
|
} |
|
|
|
} |