21 lines
391 B
PHP
21 lines
391 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\Pengumuman;
|
|
use Illuminate\Http\Request;
|
|
|
|
class PengumumanController extends Controller
|
|
{
|
|
/**
|
|
* Display a listing of the resource.
|
|
*/
|
|
public function index()
|
|
{
|
|
$pengumuman = Pengumuman::active()
|
|
->ordered()
|
|
->get();
|
|
|
|
return view('pengumuman', compact('pengumuman'));
|
|
}
|
|
} |