Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Http\Controllers;
  4.  
  5. use App\Apartment;
  6. use Illuminate\Http\Request;
  7.  
  8. class ApartmentController extends Controller
  9. {
  10. /**
  11. * Display a listing of the resource.
  12. *
  13. * @return \Illuminate\Http\Response
  14. */
  15. public function index()
  16. {
  17. $apartments = Apartment::all();
  18.  
  19. $r = Apartment::find(1);
  20. $rezervisani = $r->reserved();
  21.  
  22.  
  23. return view('index', compact('apartments', 'rezervisani'));
  24. }
  25.  
  26. /**
  27. * Show the form for creating a new resource.
  28. *
  29. * @return \Illuminate\Http\Response
  30. */
  31. public function create()
  32. {
  33. //
  34. }
  35.  
  36. /**
  37. * Store a newly created resource in storage.
  38. *
  39. * @param \Illuminate\Http\Request $request
  40. * @return \Illuminate\Http\Response
  41. */
  42. public function store(Request $request)
  43. {
  44. //
  45. }
  46.  
  47. /**
  48. * Display the specified resource.
  49. *
  50. * @param \App\Apartment $apartment
  51. * @return \Illuminate\Http\Response
  52. */
  53. public function show(Apartment $apartment)
  54. {
  55. //
  56. }
  57.  
  58. /**
  59. * Show the form for editing the specified resource.
  60. *
  61. * @param \App\Apartment $apartment
  62. * @return \Illuminate\Http\Response
  63. */
  64. public function edit(Apartment $apartment)
  65. {
  66. //
  67. }
  68.  
  69. /**
  70. * Update the specified resource in storage.
  71. *
  72. * @param \Illuminate\Http\Request $request
  73. * @param \App\Apartment $apartment
  74. * @return \Illuminate\Http\Response
  75. */
  76. public function update(Request $request, Apartment $apartment)
  77. {
  78. //
  79. }
  80.  
  81. /**
  82. * Remove the specified resource from storage.
  83. *
  84. * @param \App\Apartment $apartment
  85. * @return \Illuminate\Http\Response
  86. */
  87. public function destroy(Apartment $apartment)
  88. {
  89. //
  90. }
  91. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement