| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace App\Http\Controllers;
- use Illuminate\Http\Request;
- use Illuminate\Http\Response;
- use Illuminate\Support\Facades\Gate;
- class CustomerController extends Controller
- {
- /**
- * Display a listing of the resource.
- *
- * @return Response
- */
- public function projectReport()
- {
- if(!Gate::allows('客户管理-项目-报表')){ return redirect('denied'); }
- return response()->view('customer.project.report');
- }
- public function projectIndex()
- {
- if(!Gate::allows('客户管理-项目-查询')){ return redirect('denied'); }
- return response()->view('customer.project.index');
- }
- public function projectCreate()
- {
- if(!Gate::allows('客户管理-项目-录入')){ return redirect('denied'); }
- return response()->view('customer.project.create');
- }
- }
|