%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/ugotscom/bos_naturals/app/Http/Controllers/
Upload File :
Create Path :
Current File : /home/ugotscom/bos_naturals/app/Http/Controllers/PropertyNoteController.php

<?php

namespace App\Http\Controllers;

use App\PropertyNote;
use Illuminate\Http\Request;

class PropertyNoteController extends Controller
{
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        //
    }

    /**
     * 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)
    {
        //
        $propertynote = new PropertyNote;
        $propertynote->propertyid=$request->propertyid;
        $propertynote->notes=$request->notes;     
        $propertynote->save();
    }

    /**
     * Display the specified resource.
     *
     * @param  \App\PropertyNote  $propertyNote
     * @return \Illuminate\Http\Response
     */
    public function show(PropertyNote $propertyNote)
    {
        //
    }

    /**
     * Show the form for editing the specified resource.
     *
     * @param  \App\PropertyNote  $propertyNote
     * @return \Illuminate\Http\Response
     */
    public function edit(PropertyNote $propertyNote)
    {
        //
    }

    /**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\PropertyNote  $propertyNote
     * @return \Illuminate\Http\Response
     */
    public function update(Request $request, PropertyNote $propertyNote)
    {
        //
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  \App\PropertyNote  $propertyNote
     * @return \Illuminate\Http\Response
     */
    public function destroy(PropertyNote $propertyNote)
    {
        //
    }
    public function propertynotebyid($id){
        $note=PropertyNote::where('propertyid',$id)->get();
        return response()->json($note);
    }
}

Zerion Mini Shell 1.0