1 | <?php |
||||
2 | |||||
3 | namespace Ipecompany\Smsirlaravel\Controllers; |
||||
4 | use Illuminate\Routing\Controller; |
||||
0 ignored issues
–
show
|
|||||
5 | use Illuminate\Support\Facades\Route; |
||||
6 | use Ipecompany\Smsirlaravel\Smsirlaravel; |
||||
7 | use Ipecompany\Smsirlaravel\SmsirlaravelLogs; |
||||
8 | |||||
9 | |||||
10 | class SmsirlaravelController extends Controller |
||||
11 | { |
||||
12 | |||||
13 | // the main index page for administrators |
||||
14 | public function index() { |
||||
15 | $credit = Smsirlaravel::credit(); |
||||
16 | $smsirlaravel_logs = SmsirlaravelLogs::orderBy('id','DESC')->paginate(config('smsirlaravel.in-page')); |
||||
0 ignored issues
–
show
The function
config was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
17 | return view('smsirlaravel::index',compact('credit','smsirlaravel_logs')); |
||||
0 ignored issues
–
show
The function
view was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
18 | } |
||||
19 | |||||
20 | // administrators can delete single log |
||||
21 | public function delete() { |
||||
22 | SmsirlaravelLogs::where('id',Route::current()->parameters['log'])->delete(); |
||||
23 | // return the user back to sms-admin after delete the log |
||||
24 | return back(); |
||||
0 ignored issues
–
show
The function
back was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
25 | } |
||||
26 | } |
||||
27 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths