CustomerController.php 859 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Http\Response;
  5. use Illuminate\Support\Facades\Gate;
  6. class CustomerController extends Controller
  7. {
  8. /**
  9. * Display a listing of the resource.
  10. *
  11. * @return Response
  12. */
  13. public function projectReport()
  14. {
  15. if(!Gate::allows('客户管理-项目-报表')){ return redirect('denied'); }
  16. return response()->view('customer.project.report');
  17. }
  18. public function projectIndex()
  19. {
  20. if(!Gate::allows('客户管理-项目-查询')){ return redirect('denied'); }
  21. return response()->view('customer.project.index');
  22. }
  23. public function projectCreate()
  24. {
  25. if(!Gate::allows('客户管理-项目-录入')){ return redirect('denied'); }
  26. return response()->view('customer.project.create');
  27. }
  28. }