Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

middleware issue #961

Open
wants to merge 94 commits into
base: master
Choose a base branch
from
Open

middleware issue #961

wants to merge 94 commits into from

Conversation

sraiyani
Copy link

if i am adding middleware route function is not working

Route::group(['middleware' => ['prevent-back-history','auth']],function(){
Route::get('/role', ['middleware' => ['permission:role.view'],'uses'=>'Admin\RoleController@index']);
Route::get('/role/create', ['middleware' => ['permission:role.create'],'uses'=>'Admin\RoleController@create']);
Route::post('/role/store', ['middleware' => ['permission:role.create'],'uses'=>'Admin\RoleController@store']);
Route::get('/role/edit/{id}', ['middleware' => ['permission:role.edit'],'uses'=>'admin\RoleController@edit', 'as'=>'role-edit']);
Route::put('/role/edit/{id}', ['middleware' => ['permission:role.edit'],'uses'=>'admin\RoleController@update', 'as'=>'role-update']);
});

controller code

class RoleController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}

public function index()
{
    $page_name = "Role";
    //$data = Permission::all();
    $data = Role::paginate(15);
    return view('admin.role.list',compact('data','page_name'));
}

}
getting this error whar is the issue Please suggest me
Untitled

MitchBred and others added 30 commits February 15, 2023 13:54
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v2...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [theseer/tokenizer](https://github.com/theseer/tokenizer) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/theseer/tokenizer/releases)
- [Changelog](https://github.com/theseer/tokenizer/blob/master/CHANGELOG.md)
- [Commits](theseer/tokenizer@1.2.1...1.2.2)

---
updated-dependencies:
- dependency-name: theseer/tokenizer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…enizer-1.2.2

Bump theseer/tokenizer from 1.2.1 to 1.2.2
…ns/cache-3

Bump actions/cache from 2 to 3
…ns/checkout-4

Bump actions/checkout from 2 to 4
Bumps [overtrue/phplint](https://github.com/overtrue/phplint) from 8.2 to 9.1.
- [Release notes](https://github.com/overtrue/phplint/releases)
- [Changelog](https://github.com/overtrue/phplint/blob/main/CHANGELOG.md)
- [Commits](overtrue/phplint@8.2...9.1)

---
updated-dependencies:
- dependency-name: overtrue/phplint
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
…rue/phplint-9.1

Bump overtrue/phplint from 8.2 to 9.1
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action) from 3 to 4.
- [Release notes](https://github.com/actions/dependency-review-action/releases)
- [Commits](actions/dependency-review-action@v3...v4)

---
updated-dependencies:
- dependency-name: actions/dependency-review-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Bumps [theseer/tokenizer](https://github.com/theseer/tokenizer) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/theseer/tokenizer/releases)
- [Changelog](https://github.com/theseer/tokenizer/blob/master/CHANGELOG.md)
- [Commits](theseer/tokenizer@1.2.2...1.2.3)

---
updated-dependencies:
- dependency-name: theseer/tokenizer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…ns/cache-4

Bump actions/cache from 3 to 4
…ns/dependency-review-action-4

Bump actions/dependency-review-action from 3 to 4
…enizer-1.2.3

Bump theseer/tokenizer from 1.2.2 to 1.2.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants