Attendize/app/Http/Controllers/API/ApiBaseController.php

19 lines
310 B
PHP
Raw Normal View History

2016-04-14 14:17:30 +00:00
<?php
namespace app\Http\Controllers\API;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
2016-04-14 17:44:53 +00:00
class ApiBaseController extends Controller
2016-04-14 14:17:30 +00:00
{
protected $account_id;
public function __construct()
{
$this->account_id = Auth::guard('api')->user()->account_id;
}
2016-09-06 20:39:27 +00:00
2016-04-14 14:17:30 +00:00
}