feat: add admin controllers
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace App\Http\Controllers\Admin;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class FlightController extends Controller
|
||||
{
|
||||
/**
|
||||
* نمایش لیست پروازها
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
return 'Flights index';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* نمایش فرم ایجاد پرواز
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
return 'Flights create';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ذخیره پرواز جدید
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* نمایش جزئیات یک پرواز
|
||||
*/
|
||||
public function show($flight)
|
||||
{
|
||||
return 'Flights show';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* نمایش فرم ویرایش پرواز
|
||||
*/
|
||||
public function edit($flight)
|
||||
{
|
||||
return 'Flights edit';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* بروزرسانی پرواز
|
||||
*/
|
||||
public function update(Request $request, $flight)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* حذف پرواز
|
||||
*/
|
||||
public function destroy($flight)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
//
|
||||
//namespace App\Http\Controllers\Admin;
|
||||
//
|
||||
//use App\Http\Controllers\Controller;
|
||||
//use Illuminate\Http\Request;
|
||||
//
|
||||
//class FlightController extends Controller
|
||||
//{
|
||||
// public function index()
|
||||
// {
|
||||
// return 'Flights index';
|
||||
// }
|
||||
//
|
||||
// public function create()
|
||||
// {
|
||||
// return 'Flights create';
|
||||
// }
|
||||
//
|
||||
// public function store()
|
||||
// {
|
||||
// //
|
||||
// }
|
||||
//
|
||||
// public function show($flight)
|
||||
// {
|
||||
// return 'Flights show';
|
||||
// }
|
||||
//
|
||||
// public function edit($flight)
|
||||
// {
|
||||
// return 'Flights edit';
|
||||
// }
|
||||
//
|
||||
// public function update($flight)
|
||||
// {
|
||||
// //
|
||||
// }
|
||||
//
|
||||
// public function destroy($flight)
|
||||
// {
|
||||
// //
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user