%PDF- %PDF-
Direktori : /home/ugotscom/bos_naturals/app/Http/Controllers/ |
Current File : /home/ugotscom/bos_naturals/app/Http/Controllers/LocationController.php |
<?php namespace App\Http\Controllers; use App\location; use Illuminate\Http\Request; class LocationController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // $data=location::orderBy('location')->get(); return response()->json($data); } /** * 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) { // $location = new location; $location->location=$request->location; $location->location_type=1; $location->save(); } /** * Display the specified resource. * * @param \App\location $location * @return \Illuminate\Http\Response */ public function show(location $location) { // } /** * Show the form for editing the specified resource. * * @param \App\location $location * @return \Illuminate\Http\Response */ public function edit(location $location) { // } /** * Update the specified resource in storage. * * @param \Illuminate\Http\Request $request * @param \App\location $location * @return \Illuminate\Http\Response */ public function update(Request $request, location $location) { // } /** * Remove the specified resource from storage. * * @param \App\location $location * @return \Illuminate\Http\Response */ public function destroy(location $location) { // } }