The authorizeResource method accepts the model's class name as its first argument, and the name of the route / request parameter that will contain the model's ID as its second argument:
Я чёт даже завис, можно ли в контроллере в конструкторе всё делать Но обычно всё же в роутах указывают метод контроллера - ArticleController@article например
всем привет) ошибка вылетает почему то (( $transactions = Transaction::with('user') ->with('payment') ->with('status') ->where('transaction_type', 'withdrawal') ->paginate();
во вьюхе <td>{{ $transaction->payment->name }}</td>
всем привет) ошибка вылетает почему то (( $transactions = Transaction::with('user') ->with('payment') ->with('status') ->where('transaction_type', 'withdrawal') ->paginate();
во вьюхе <td>{{ $transaction->payment->name }}</td>