Virajsinh

Laravel Role Wise Restriction

Sep 24th, 2025
331
0
Never
12
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.71 KB | None | 0 0
  1. <?php
  2.  
  3.     public function __construct()
  4.     {
  5.         $this->middleware('auth');
  6.         $this->middleware('permission:company-list', ['only' => ['index','list']]);
  7.         $this->middleware('permission:company-create', ['only' => ['create','store']]);
  8.         $this->middleware('permission:company-edit', ['only' => ['edit','update']]);
  9.         $this->middleware('permission:company-delete', ['only' => ['destroy','delete']]);
  10.         $this->middleware('permission:company-view', ['only' => ['show']]);
  11.  
  12.         // Only Super Admin Can Access
  13.         $this->middleware('role:' . User::ROLE_SUPER_ADMIN); // Single Role
  14.         $this->middleware('role:' . implode('|', [User::ROLE_SUPER_ADMIN])); // Multiple Role
  15.     }
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Idlalnu
    35 days
    Comment was deleted
  • User was banned
  • Cylunoz
    11 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=czltedjldd
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment