Issues (232)

app/Http/Controllers/LogsController.php (2 issues)

1
<?php
2
3
namespace App\Http\Controllers;
4
5
use OwenIt\Auditing\Log;
0 ignored issues
show
The type OwenIt\Auditing\Log was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class LogsController extends Controller
8
{
9
    /**
10
     * Display a listing of the resource.
11
     *
12
     * @return \Illuminate\Http\Response
13
     */
14
    public function index()
15
    {
16
        $logs = Log::latest()->paginate(50);
17
18
        return view('logs.index', compact('logs'));
0 ignored issues
show
Bug Best Practice introduced by
The expression return view('logs.index', compact('logs')) returns the type Illuminate\Contracts\Vie...ry|Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
Loading history...
19
    }
20
21
22
}
23