1 | <?php |
||
7 | class DashboardController extends Controller |
||
8 | { |
||
9 | /** |
||
10 | * Create a new controller instance. |
||
11 | * |
||
12 | * @return void |
||
|
|||
13 | */ |
||
14 | public function __construct() |
||
18 | |||
19 | /** |
||
20 | * Show the user dashboard with option to select which tenant to manage |
||
21 | * or redirect them to their currently active tenant |
||
22 | * |
||
23 | * @return \Illuminate\Http\Response |
||
24 | */ |
||
25 | public function index() |
||
33 | |||
34 | /** |
||
35 | * Add the selected tenant to the users session |
||
36 | */ |
||
37 | public function selectTenant() |
||
49 | |||
50 | /** |
||
51 | * Remove the selected tenant from the users session |
||
52 | */ |
||
53 | public function changeTenant() |
||
59 | } |
||
60 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.