mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
934afa036f
Shift automatically applies the Laravel coding style - which uses the PSR-2 coding style as a base with some minor additions. You may customize the adopted coding style by adding your own [PHP CS Fixer][1] `.php_cs` config file to your project root. Feel free to use [Shift's Laravel ruleset][2] to help you get started. [1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer [2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
41 lines
1.4 KiB
PHP
41 lines
1.4 KiB
PHP
<?php
|
|
/*! \mainpage Snipe-IT Code Documentation
|
|
*
|
|
* \section intro_sec Introduction
|
|
*
|
|
* This documentation is designed to allow developers to easily understand
|
|
* the backend code of Snipe-IT. Familiarity with the PHP language is assumed,
|
|
* and experience with the Laravel framework (version 5.2) will be very helpful.
|
|
*
|
|
* **THIS DOCUMENTATION DOES NOT COVER INSTALLATION.** If you're here and you're not a
|
|
* developer, you're probably in the wrong place. Please see the
|
|
* [Installation documentation](http://docs.snipeitapp.com) for
|
|
* information on how to install Snipe-IT.
|
|
*
|
|
* To learn how to set up a development environment and get started developing for Snipe-IT,
|
|
* please see the [contributing documentation](http://docs.snipeitapp.com/contributing.html).
|
|
*
|
|
* Only the Snipe-IT specific controllers, models, helpers, service providers,
|
|
* etc have been included in this documentation (excluding vendors, Laravel core, etc)
|
|
* for simplicity.
|
|
*/
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Auth;
|
|
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
|
use Illuminate\Routing\Controller as BaseController;
|
|
|
|
abstract class Controller extends BaseController
|
|
{
|
|
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
|
|
|
|
public function __construct()
|
|
{
|
|
view()->share('signedIn', Auth::check());
|
|
view()->share('user', Auth::user());
|
|
}
|
|
}
|