%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/PropertyServiceActivityController.php

<?php

namespace App\Http\Controllers;

use App\PropertyServiceActivity;
use Illuminate\Http\Request;

class PropertyServiceActivityController 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)
    {
        //
        $activity = new PropertyServiceActivity;
        $activity->client_id=$request->client_id;
        $activity->maintenance_id=$request->maintenance_id;
        $activity->activity=$request->activity;
        $activity->activity_description=$request->activity_description;  
        $activity->save();
    }

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

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

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

    /**
     * Remove the specified resource from storage.
     *
     * @param  \App\PropertyServiceActivity  $propertyServiceActivity
     * @return \Illuminate\Http\Response
     */
    public function destroy(PropertyServiceActivity $propertyServiceActivity)
    {
        //
    }
    public function activitybyid($id){
        $propertyservice=PropertyServiceActivity::where('maintenance_id',$id)->get();
        return response()->json($propertyservice);
    }
}

Zerion Mini Shell 1.0