mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-18 00:53:10 +01:00
Namespace Updates and Confide Changes
This commit is contained in:
parent
5584121afb
commit
cf5adfad25
@ -10,6 +10,7 @@ use Utils;
|
|||||||
use View;
|
use View;
|
||||||
use Ninja\Mailers\Mailer;
|
use Ninja\Mailers\Mailer;
|
||||||
use Ninja\Repositories\AccountRepository;
|
use Ninja\Repositories\AccountRepository;
|
||||||
|
use Redirect;
|
||||||
|
|
||||||
class AppController extends BaseController
|
class AppController extends BaseController
|
||||||
{
|
{
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
use App\Libraries\Utils;
|
use App\Libraries\Utils;
|
||||||
use Ninja\Mailers\Mailer;
|
use Ninja\Mailers\Mailer;
|
||||||
use Redirect;
|
use Redirect;
|
||||||
|
use App\Models\Account;
|
||||||
|
|
||||||
class HomeController extends BaseController
|
class HomeController extends BaseController
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
<?php namespace App\Http\Controllers;
|
<?php namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Config;
|
||||||
|
use View;
|
||||||
|
use Confide;
|
||||||
use Auth;
|
use Auth;
|
||||||
use App\Http\Requests;
|
use App\Http\Requests;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
use Closure;
|
use Closure;
|
||||||
use Utils;
|
use Utils;
|
||||||
use App;
|
use App;
|
||||||
|
use Auth;
|
||||||
|
use Input;
|
||||||
|
use Redirect;
|
||||||
|
|
||||||
class StartupCheck {
|
class StartupCheck {
|
||||||
|
|
||||||
|
@ -1,67 +1,69 @@
|
|||||||
<?php namespace App\Models;
|
<?php namespace App\Models;
|
||||||
|
|
||||||
|
use Eloquent;
|
||||||
|
|
||||||
class Account extends Eloquent
|
class Account extends Eloquent
|
||||||
{
|
{
|
||||||
protected $softDelete = true;
|
protected $softDelete = true;
|
||||||
|
|
||||||
public function users()
|
public function users()
|
||||||
{
|
{
|
||||||
return $this->hasMany('User');
|
return $this->hasMany('App\Models\User');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function clients()
|
public function clients()
|
||||||
{
|
{
|
||||||
return $this->hasMany('Client');
|
return $this->hasMany('App\Models\Client');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function invoices()
|
public function invoices()
|
||||||
{
|
{
|
||||||
return $this->hasMany('Invoice');
|
return $this->hasMany('App\Models\Invoice');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function account_gateways()
|
public function account_gateways()
|
||||||
{
|
{
|
||||||
return $this->hasMany('AccountGateway');
|
return $this->hasMany('App\Models\AccountGateway');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tax_rates()
|
public function tax_rates()
|
||||||
{
|
{
|
||||||
return $this->hasMany('TaxRate');
|
return $this->hasMany('App\Models\TaxRate');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function country()
|
public function country()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('Country');
|
return $this->belongsTo('App\Models\Country');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function timezone()
|
public function timezone()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('Timezone');
|
return $this->belongsTo('App\Models\Timezone');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function language()
|
public function language()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('Language');
|
return $this->belongsTo('App\Models\Language');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function date_format()
|
public function date_format()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('DateFormat');
|
return $this->belongsTo('App\Models\DateFormat');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function datetime_format()
|
public function datetime_format()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('DatetimeFormat');
|
return $this->belongsTo('App\Models\DatetimeFormat');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function size()
|
public function size()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('Size');
|
return $this->belongsTo('App\Models\Size');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function industry()
|
public function industry()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('Industry');
|
return $this->belongsTo('App\Models\Industry');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isGatewayConfigured($gatewayId = 0)
|
public function isGatewayConfigured($gatewayId = 0)
|
||||||
|
@ -17,7 +17,7 @@ class Activity extends Eloquent
|
|||||||
|
|
||||||
public function user()
|
public function user()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('User');
|
return $this->belongsTo('App\Models\User');
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function getBlank($entity = false)
|
private static function getBlank($entity = false)
|
||||||
|
@ -14,7 +14,7 @@ class Invitation extends EntityModel
|
|||||||
|
|
||||||
public function user()
|
public function user()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('User')->withTrashed();
|
return $this->belongsTo('App\Models\User')->withTrashed();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function account()
|
public function account()
|
||||||
|
@ -9,7 +9,7 @@ class Invoice extends EntityModel
|
|||||||
|
|
||||||
public function user()
|
public function user()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('User');
|
return $this->belongsTo('App\Models\User');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function client()
|
public function client()
|
||||||
|
@ -15,7 +15,7 @@ class Project extends Eloquent
|
|||||||
|
|
||||||
public function user()
|
public function user()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('User');
|
return $this->belongsTo('App\Models\User');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function client()
|
public function client()
|
||||||
|
@ -15,7 +15,7 @@ class ProjectCode extends Eloquent
|
|||||||
|
|
||||||
public function user()
|
public function user()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('User');
|
return $this->belongsTo('App\Models\User');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function project()
|
public function project()
|
||||||
|
@ -12,7 +12,7 @@ class Timesheet extends Eloquent
|
|||||||
|
|
||||||
public function user()
|
public function user()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('User');
|
return $this->belongsTo('App\Models\User');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function timesheet_events()
|
public function timesheet_events()
|
||||||
|
@ -27,7 +27,7 @@ class TimesheetEvent extends Eloquent
|
|||||||
|
|
||||||
public function user()
|
public function user()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('User');
|
return $this->belongsTo('App\Models\User');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function source()
|
public function source()
|
||||||
|
@ -15,7 +15,7 @@ class TimesheetEventSource extends Eloquent
|
|||||||
|
|
||||||
public function user()
|
public function user()
|
||||||
{
|
{
|
||||||
return $this->belongsTo('User');
|
return $this->belongsTo('App\Models\User');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function events()
|
public function events()
|
||||||
|
@ -1,14 +1,25 @@
|
|||||||
<?php namespace App\Models;
|
<?php namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Auth\Authenticatable;
|
use Eloquent;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
// use Illuminate\Auth\UserInterface;
|
||||||
use Illuminate\Auth\Passwords\CanResetPassword;
|
// use Illuminate\Auth\Reminders\RemindableInterface;
|
||||||
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
|
use Zizaco\Confide\ConfideUser;
|
||||||
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
|
|
||||||
|
|
||||||
class User extends Model implements AuthenticatableContract, CanResetPasswordContract {
|
// use Illuminate\Auth\Authenticatable;
|
||||||
|
// use Illuminate\Auth\Passwords\CanResetPassword;
|
||||||
|
// use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
|
||||||
|
// use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
|
||||||
|
|
||||||
use Authenticatable, CanResetPassword;
|
|
||||||
|
// use Zizaco\Confide\ConfideUser;
|
||||||
|
use Zizaco\Confide\ConfideUserInterface;
|
||||||
|
|
||||||
|
class User extends Eloquent implements ConfideUserInterface {
|
||||||
|
|
||||||
|
// class User extends ConfideUser implements UserInterface, RemindableInterface {
|
||||||
|
|
||||||
|
// use Authenticatable, CanResetPassword;
|
||||||
|
use ConfideUser;
|
||||||
|
|
||||||
protected $softDelete = true;
|
protected $softDelete = true;
|
||||||
|
|
||||||
@ -172,4 +183,9 @@ class User extends Model implements AuthenticatableContract, CanResetPasswordCon
|
|||||||
{
|
{
|
||||||
return 'remember_token';
|
return 'remember_token';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// public function confirm(){}
|
||||||
|
// public function forgotPassword(){}
|
||||||
|
// public function isValid(){}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
<?php namespace Ninja\Repositories;
|
<?php namespace Ninja\Repositories;
|
||||||
|
|
||||||
use Client;
|
use App\Models\Client;
|
||||||
use Contact;
|
use App\Models\Contact;
|
||||||
use Account;
|
use App\Models\Account;
|
||||||
use Request;
|
use Request;
|
||||||
use Session;
|
use Session;
|
||||||
use Language;
|
use Language;
|
||||||
use User;
|
use App\Models\User;
|
||||||
use Auth;
|
use Auth;
|
||||||
use Invitation;
|
use Invitation;
|
||||||
use Invoice;
|
use Invoice;
|
||||||
|
@ -25,10 +25,23 @@
|
|||||||
"reference": "origin/master"
|
"reference": "origin/master"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "package",
|
||||||
|
"package": {
|
||||||
|
"name": "impleri/confide",
|
||||||
|
"version": "dev-master",
|
||||||
|
"source": {
|
||||||
|
"url": "https://github.com/impleri/confide",
|
||||||
|
"type": "git",
|
||||||
|
"reference": "origin/master"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"laravel/framework": "5.0.*",
|
"laravel/framework": "5.0.*",
|
||||||
|
"impleri/confide": "dev-master",
|
||||||
"patricktalmadge/bootstrapper": "5.5.x",
|
"patricktalmadge/bootstrapper": "5.5.x",
|
||||||
"anahkiasen/former": "4.0.*@dev",
|
"anahkiasen/former": "4.0.*@dev",
|
||||||
"barryvdh/laravel-debugbar": "~2.0.2",
|
"barryvdh/laravel-debugbar": "~2.0.2",
|
||||||
@ -61,7 +74,9 @@
|
|||||||
"app/Http/Controllers",
|
"app/Http/Controllers",
|
||||||
"app/Models",
|
"app/Models",
|
||||||
"app/Ninja",
|
"app/Ninja",
|
||||||
|
"app/Ninja/Repositories",
|
||||||
"vendor/calvinfroedge/PHP-Payments/lib",
|
"vendor/calvinfroedge/PHP-Payments/lib",
|
||||||
|
"vendor/impleri/confide/src",
|
||||||
"database"
|
"database"
|
||||||
],
|
],
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
Loading…
Reference in New Issue
Block a user