Skip to content
This repository was archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
Merge pull request #565 from Edgarborras94/0.2
Browse files Browse the repository at this point in the history
Laravel 7 & 8 Compatibility
  • Loading branch information
thekordy authored Sep 21, 2020
2 parents 4e36fc6 + 44cf56c commit 110d5d7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 28 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ticketit

A simple helpdesk tickets system for Laravel 5.1+ (5.1 – 5.8 and 6.\*) which integrates smoothly with Laravel default users and auth system.
A simple helpdesk tickets system for Laravel 5.1+ (5.1 – 5.8 and 6.* - 7.* - 8.*) which integrates smoothly with Laravel default users and auth system.
It will integrate into your current Laravel project within minutes, and you can offer your customers and your team a nice and simple support ticket system.

## Features:
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "kordy/ticketit",
"description": "A simple helpdesk tickets system for Laravel 5.1 – 5.8 and 6.* which integrates smoothly with Laravel default users and auth system",
"description": "A simple helpdesk tickets system for Laravel 5.1 – 5.8 and 6.* - 7.* - 8.* which integrates smoothly with Laravel default users and auth system",
"type": "laravel-package",
"keywords": ["laravel","helpdesk", "ticket", "support"],
"require": {
"laravel/framework": "^5.1|^6.0",
"laravel/framework": "^5.1|^6.0|^7.0|^8.0",
"laravelcollective/html": "^5.1|^6.0",
"illuminate/support": "^5.1|^6.0",
"yajra/laravel-datatables-oracle": "^6.0|^8.0|^9.4",
"jenssegers/date": "^3.0",
"mews/purifier": "^2.0|^3.1",
"doctrine/dbal": "^2.5|^2.6"
"illuminate/support": "^5.1|^6.0|^7.0|^8.0",
"yajra/laravel-datatables-oracle": "^6.0|^8.0|^9.4|^9.11",
"jenssegers/date": "^3.0|^4.0",
"mews/purifier": "^2.0|^3.1|^3.2",
"doctrine/dbal": "^2.5|^2.6|^2.10"

},
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/Controllers/TicketsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function data($complete = false)

$this->renderTicketTable($collection);

$collection->editColumn('updated_at', '{!! \Carbon\Carbon::createFromFormat("Y-m-d H:i:s", $updated_at)->diffForHumans() !!}');
$collection->editColumn('updated_at', '{!! \Carbon\Carbon::parse($updated_at)->diffForHumans() !!}');

// method rawColumns was introduced in laravel-datatables 7, which is only compatible with >L5.4
// in previous laravel-datatables versions escaping columns wasn't defaut
Expand Down
15 changes: 6 additions & 9 deletions src/Views/bootstrap3/admin/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,17 +239,14 @@
@section('footer')
@if($tickets_count)
{{--@include('ticketit::shared.footer')--}}
<script type="text/javascript"
src="https://www.google.com/jsapi?autoload={
'modules':[{
'name':'visualization',
'version':'1',
'packages':['corechart']
}]
}"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>

<script type="text/javascript">
google.setOnLoadCallback(drawChart);
// Load the Visualization API and the corechart package.
google.charts.load('current', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
google.charts.setOnLoadCallback(drawChart);
// performance line chart
function drawChart() {
Expand Down
16 changes: 6 additions & 10 deletions src/Views/bootstrap4/admin/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,13 @@
@section('footer')
@if($tickets_count)
{{--@include('ticketit::shared.footer')--}}
<script type="text/javascript"
src="https://www.google.com/jsapi?autoload={
'modules':[{
'name':'visualization',
'version':'1',
'packages':['corechart']
}]
}"></script>

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.setOnLoadCallback(drawChart);
// Load the Visualization API and the corechart package.
google.charts.load('current', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
google.charts.setOnLoadCallback(drawChart);
// performance line chart
function drawChart() {
Expand Down

0 comments on commit 110d5d7

Please sign in to comment.