Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Http\Controllers;
- use App\Apartment;
- use Illuminate\Http\Request;
- class ApartmentController extends Controller
- {
- /**
- * Display a listing of the resource.
- *
- * @return \Illuminate\Http\Response
- */
- public function index()
- {
- $apartments = Apartment::all();
- $r = Apartment::find(1);
- $rezervisani = $r->reserved();
- return view('index', compact('apartments', 'rezervisani'));
- }
- /**
- * Show the form for creating a new resource.
- *
- * @return \Illuminate\Http\Response
- */
- public function create()
- {
- //
- }
- /**
- * Store a newly created resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @return \Illuminate\Http\Response
- */
- public function store(Request $request)
- {
- //
- }
- /**
- * Display the specified resource.
- *
- * @param \App\Apartment $apartment
- * @return \Illuminate\Http\Response
- */
- public function show(Apartment $apartment)
- {
- //
- }
- /**
- * Show the form for editing the specified resource.
- *
- * @param \App\Apartment $apartment
- * @return \Illuminate\Http\Response
- */
- public function edit(Apartment $apartment)
- {
- //
- }
- /**
- * Update the specified resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @param \App\Apartment $apartment
- * @return \Illuminate\Http\Response
- */
- public function update(Request $request, Apartment $apartment)
- {
- //
- }
- /**
- * Remove the specified resource from storage.
- *
- * @param \App\Apartment $apartment
- * @return \Illuminate\Http\Response
- */
- public function destroy(Apartment $apartment)
- {
- //
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement