This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
</style> | |
<template> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-12"> | |
<h4 class="page-title">Dashboard</h4> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
</style> | |
<template> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-12"> | |
<h4 class="page-title">Dashboard</h4> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"id": "ef9caa37-b854-4ffe-849a-acfb00c457ff", | |
"plate": "XC10AAA", | |
"created_at": "2017-02-15 02:13:14", | |
"updated_at": "2017-02-15 13:26:59", | |
"pivot": { | |
"user_id": "a6a6bfff-3574-41de-9c05-501462eb2867", | |
"plate_id": "ef9caa37-b854-4ffe-849a-acfb00c457ff" | |
} | |
}, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Http\Request; | |
/* | |
|-------------------------------------------------------------------------- | |
| API Routes | |
|-------------------------------------------------------------------------- | |
| | |
| Here is where you can register API routes for your application. These |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use App\Traits\UuidModel; | |
use Illuminate\Notifications\Notifiable; | |
use Laravel\Passport\HasApiTokens; | |
use Illuminate\Foundation\Auth\User as Authenticatable; | |
class User extends Authenticatable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use App\Traits\UuidModel; | |
use Illuminate\Notifications\Notifiable; | |
use Laravel\Passport\HasApiTokens; | |
use Illuminate\Foundation\Auth\User as Authenticatable; | |
class User extends Authenticatable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<tbody> | |
@foreach(Auth::user()->detections as $detection) | |
<tr> | |
<td>{{ $detection->plate_id }}</td> | |
<td>{{ $detection->updated_at->diffForHumans() }}</td> | |
<td>{{ $detection->created_at->diffForHumans() }}</td> | |
</tr> | |
@endforeach |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateUsersTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use App\Traits\UuidModel; | |
use Illuminate\Database\Eloquent\Model; | |
class Detection extends Model | |
{ | |
use UuidModel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use App\Traits\UuidModel; | |
use Illuminate\Database\Eloquent\Model; | |
class Plate extends Model | |
{ | |
use UuidModel; |