1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?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)
- {
- //
- }
- }
|