mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
24 lines
637 B
PHP
24 lines
637 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Announcement;//call to announcement controller folder
|
|
use App\Http\Controllers\Controller;//call to controller class
|
|
|
|
use App\Models\Announcement;
|
|
use Illuminate\Http\Request;
|
|
|
|
class EditAnnouncementController extends Controller
|
|
{
|
|
/**
|
|
* Show the form for editing the specified resource.
|
|
*
|
|
* @param int $id
|
|
* @return \Illuminate\Http\Response
|
|
*/
|
|
public function edit($id)
|
|
{
|
|
$announcements = Announcement::findOrFail($id);
|
|
//returns the page for this route
|
|
return view('announcement.edit_announcement', compact('announcements'));
|
|
}
|
|
}
|