mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 17:31:09 -06:00
Forgot to commit this one.
This commit is contained in:
parent
eed70cdb62
commit
235c7e72bd
@ -14,8 +14,10 @@ Route::bind('account', function($value, $route)
|
|||||||
Route::bind('accountname', function($value, $route)
|
Route::bind('accountname', function($value, $route)
|
||||||
{
|
{
|
||||||
if(Auth::check()) {
|
if(Auth::check()) {
|
||||||
|
$type = AccountType::where('description','Default account')->first();
|
||||||
return Account::
|
return Account::
|
||||||
where('name', $value)->
|
where('name', $value)->
|
||||||
|
where('account_type_id',$type->id)->
|
||||||
where('user_id',Auth::user()->id)->first();
|
where('user_id',Auth::user()->id)->first();
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@ -114,7 +116,8 @@ Route::group(['before' => 'auth'], function () {
|
|||||||
Route::get('/chart/home/account/{account?}', ['uses' => 'ChartController@homeAccount', 'as' => 'chart.home']);
|
Route::get('/chart/home/account/{account?}', ['uses' => 'ChartController@homeAccount', 'as' => 'chart.home']);
|
||||||
Route::get('/chart/home/categories', ['uses' => 'ChartController@homeCategories', 'as' => 'chart.categories']);
|
Route::get('/chart/home/categories', ['uses' => 'ChartController@homeCategories', 'as' => 'chart.categories']);
|
||||||
Route::get('/chart/home/budgets', ['uses' => 'ChartController@homeBudgets', 'as' => 'chart.budgets']);
|
Route::get('/chart/home/budgets', ['uses' => 'ChartController@homeBudgets', 'as' => 'chart.budgets']);
|
||||||
Route::get('/chart/home/info/{accountname}/{day}/{month}/{year}', ['uses' => 'ChartController@homeAccountInfo', 'as' => 'chart.info']);
|
Route::get('/chart/home/info/{accountnameA}/{day}/{month}/{year}',
|
||||||
|
['uses' => 'ChartController@homeAccountInfo', 'as' => 'chart.info']);
|
||||||
Route::get('/chart/categories/show/{category}', ['uses' => 'ChartController@categoryShowChart','as' => 'chart.showcategory']);
|
Route::get('/chart/categories/show/{category}', ['uses' => 'ChartController@categoryShowChart','as' => 'chart.showcategory']);
|
||||||
|
|
||||||
// home controller
|
// home controller
|
||||||
|
Loading…
Reference in New Issue
Block a user