todo/app/Http/Controllers/TaskController.php

63 lines
1.1 KiB
PHP

<?php
namespace App\Http\Controllers;
use App\Http\Requests\StoreTaskRequest;
use App\Http\Requests\UpdateTaskRequest;
use App\Models\Label;
use App\Models\Task;
class TaskController extends Controller
{
public function index()
{
$tasks = Task::paginate(7);
return view('admin.tasks.index', compact('tasks'));
}
public function create()
{
return view('admin.tasks.create');
}
/**
* Store a newly created resource in storage.
*/
public function store(StoreTaskRequest $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(Task $task)
{
//
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Task $task)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(UpdateTaskRequest $request, Task $task)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(Task $task)
{
//
}
}