Skip to content

Commit

Permalink
loanOG
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsgad committed Nov 14, 2019
0 parents commit cb17d5b
Show file tree
Hide file tree
Showing 7,868 changed files with 767,065 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file added .DS_Store
Binary file not shown.
35 changes: 35 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=

INFOBIP_USERNAME=username
INFOBIP_PASSWORD=secret
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto
*.css linguist-vendored
*.scss linguist-vendored
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/node_modules
/public/storage
/storage/*.key
/vendor
/.idea
Homestead.json
Homestead.yaml
.env
Binary file added app/.DS_Store
Binary file not shown.
23 changes: 23 additions & 0 deletions app/AdminGroup.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace App;

class AdminGroup extends \Sentinel\Models\Group
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'admin_groups';

/**
* Returns the relationship between groups and users.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
*/
public function users()
{
return $this->belongsToMany(static::$userModel, static::$userGroupsPivot, 'user_id', 'group_id');
}
}
12 changes: 12 additions & 0 deletions app/AdminThrottle.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace App;

class AdminThrottle extends \Cartalyst\Sentry\Throttling\Eloquent\Throttle
{

/**
* {@inheritDoc}
*/
protected $table = 'admin_throttle';
}
22 changes: 22 additions & 0 deletions app/AdminUser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace App;

class AdminUser extends \Sentinel\Models\User
{

/**
* {@inheritDoc}
*/
protected $table = 'admin_users';

/**
* Returns the relationship between users and groups.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
*/
public function groups()
{
return $this->belongsToMany(static::$groupModel, static::$userGroupsPivot, 'group_id', 'user_id');
}
}
32 changes: 32 additions & 0 deletions app/Client.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Client extends Model
{
/**
* Get Client Office.
*/
public function office()
{
return $this->belongsTo('App\Office');
}

/**
* Get Client Loans
*/
public function loans()
{
return $this->hasMany('App\Loan');
}

/**
* Get the Tenant.
*/
public function tenant()
{
return $this->belongsTo('App\Tenant');
}
}
40 changes: 40 additions & 0 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
//
];

/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->call('App\Http\Controllers\ScheduleController@index')->everyMinute();
$schedule->call('App\Http\Controllers\LoanPenaltController@index')->daily();
}

/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function commands()
{
require base_path('routes/console.php');
}
}
16 changes: 16 additions & 0 deletions app/Contact.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Contact extends Model
{
/**
* Get the Group.
*/
public function group()
{
return $this->belongsTo('App\Group');
}
}
65 changes: 65 additions & 0 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?php

namespace App\Exceptions;

use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

class Handler extends ExceptionHandler
{
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
protected $dontReport = [
\Illuminate\Auth\AuthenticationException::class,
\Illuminate\Auth\Access\AuthorizationException::class,
\Symfony\Component\HttpKernel\Exception\HttpException::class,
\Illuminate\Database\Eloquent\ModelNotFoundException::class,
\Illuminate\Session\TokenMismatchException::class,
\Illuminate\Validation\ValidationException::class,
];

/**
* Report or log an exception.
*
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
*
* @param \Exception $exception
* @return void
*/
public function report(Exception $exception)
{
parent::report($exception);
}

/**
* Render an exception into an HTTP response.
*
* @param \Illuminate\Http\Request $request
* @param \Exception $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
{
return parent::render($request, $exception);
}

/**
* Convert an authentication exception into an unauthenticated response.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Auth\AuthenticationException $exception
* @return \Illuminate\Http\Response
*/
protected function unauthenticated($request, AuthenticationException $exception)
{
if ($request->expectsJson()) {
return response()->json(['error' => 'Unauthenticated.'], 401);
}

return redirect()->guest('login');
}
}
24 changes: 24 additions & 0 deletions app/Group.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Group extends Model
{
/**
* Get the Tenant.
*/
public function tenant()
{
return $this->belongsTo('App\Tenant');
}

/**
* Get Group Contacts
*/
public function contacts()
{
return $this->hasMany('App\Contact');
}
}
Binary file added app/Http/.DS_Store
Binary file not shown.
Binary file added app/Http/Controllers/.DS_Store
Binary file not shown.
Binary file added app/Http/Controllers/Acl/.DS_Store
Binary file not shown.
Loading

0 comments on commit cb17d5b

Please sign in to comment.