SettingController.php 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. namespace App\Http\Controllers;
  3. use App\Models\Company;
  4. use App\Models\Ppn;
  5. use Illuminate\Http\Request;
  6. class SettingController extends Controller
  7. {
  8. /**
  9. * Display a listing of the resource.
  10. *
  11. * @return \Illuminate\Http\Response
  12. */
  13. public function index()
  14. {
  15. $this->authorize("viewAny", User::class);
  16. return inertia("Settings/Index", [
  17. "ppn" => Ppn::first(),
  18. "company" => Company::first(),
  19. ]);
  20. }
  21. /**
  22. * Show the form for creating a new resource.
  23. *
  24. * @return \Illuminate\Http\Response
  25. */
  26. public function create()
  27. {
  28. //
  29. }
  30. /**
  31. * Store a newly created resource in storage.
  32. *
  33. * @param \Illuminate\Http\Request $request
  34. * @return \Illuminate\Http\Response
  35. */
  36. public function store(Request $request)
  37. {
  38. //
  39. }
  40. /**
  41. * Display the specified resource.
  42. *
  43. * @param int $id
  44. * @return \Illuminate\Http\Response
  45. */
  46. public function show($id)
  47. {
  48. //
  49. }
  50. /**
  51. * Show the form for editing the specified resource.
  52. *
  53. * @param int $id
  54. * @return \Illuminate\Http\Response
  55. */
  56. public function edit($id)
  57. {
  58. //
  59. }
  60. /**
  61. * Update the specified resource in storage.
  62. *
  63. * @param \Illuminate\Http\Request $request
  64. * @param int $id
  65. * @return \Illuminate\Http\Response
  66. */
  67. public function update(Request $request, $id)
  68. {
  69. //
  70. }
  71. /**
  72. * Remove the specified resource from storage.
  73. *
  74. * @param int $id
  75. * @return \Illuminate\Http\Response
  76. */
  77. public function destroy($id)
  78. {
  79. //
  80. }
  81. }