12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace App\Http\Controllers;
- use Illuminate\Http\Request;
- use Illuminate\Support\Facades\Route;
- class TestRoleController extends Controller
- {
- public function index()
- {
- $arr = [1,2,3,4];
- $arr1 = [1,2,3,4,5,6,7];
- return array_intersect($arr , $arr1) ? 1 : 2;
- }
- public function test()
- {
- return Route::getCurrentRoute()->uri;
- }
- public function testOne()
- {
- return Route::getCurrentRoute()->uri;
- }
- public function testTwo()
- {
- return Route::getCurrentRoute()->uri;
- }
- }
|