|
@@ -1,92 +0,0 @@
|
|
|
-<?php
|
|
|
-
|
|
|
-namespace App\Http\Controllers;
|
|
|
-
|
|
|
-use App\Task;
|
|
|
-use Illuminate\Http\Request;
|
|
|
-
|
|
|
-class TasksController extends Controller
|
|
|
-{
|
|
|
- /**
|
|
|
- * Display a listing of the resource.
|
|
|
- *
|
|
|
- * @return \Illuminate\Http\Response
|
|
|
- */
|
|
|
- public function index()
|
|
|
- {
|
|
|
- $name = 'Fred';
|
|
|
- // $tasks = DB::table('tasks')->get();
|
|
|
- $tasks = Task::all();
|
|
|
-
|
|
|
- // Return a JSON response from the serialized results.
|
|
|
- // return $tasks;
|
|
|
-
|
|
|
- return view('tasks.index', compact('name', 'tasks'));
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 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\Task $task
|
|
|
- * @return \Illuminate\Http\Response
|
|
|
- */
|
|
|
- public function show(Task $task)
|
|
|
- {
|
|
|
- return view('tasks.show', compact('task'));
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Show the form for editing the specified resource.
|
|
|
- *
|
|
|
- * @param \App\Task $task
|
|
|
- * @return \Illuminate\Http\Response
|
|
|
- */
|
|
|
- public function edit(Task $task)
|
|
|
- {
|
|
|
- //
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Update the specified resource in storage.
|
|
|
- *
|
|
|
- * @param \Illuminate\Http\Request $request
|
|
|
- * @param \App\Task $task
|
|
|
- * @return \Illuminate\Http\Response
|
|
|
- */
|
|
|
- public function update(Request $request, Task $task)
|
|
|
- {
|
|
|
- //
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Remove the specified resource from storage.
|
|
|
- *
|
|
|
- * @param \App\Task $task
|
|
|
- * @return \Illuminate\Http\Response
|
|
|
- */
|
|
|
- public function destroy(Task $task)
|
|
|
- {
|
|
|
- //
|
|
|
- }
|
|
|
-}
|