todo/app/Http/Controllers/TaskController.php

63 lines
1.1 KiB
PHP
Raw Normal View History

2024-04-27 15:04:24 +03:00
<?php
namespace App\Http\Controllers;
use App\Http\Requests\StoreTaskRequest;
use App\Http\Requests\UpdateTaskRequest;
2024-05-02 10:06:39 +03:00
use App\Models\Label;
2024-04-27 15:04:24 +03:00
use App\Models\Task;
class TaskController extends Controller
{
public function index()
{
2024-05-07 10:35:04 +03:00
$tasks = Task::paginate(7);
return view('admin.tasks.index', compact('tasks'));
2024-04-27 15:04:24 +03:00
}
public function create()
{
2024-05-07 10:35:04 +03:00
return view('admin.tasks.create');
2024-04-27 15:04:24 +03:00
}
/**
* 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)
{
//
}
}