Skip to content

Instantly share code, notes, and snippets.

View daniti's full-sized avatar

Daniele daniti

View GitHub Profile
{
"data": [
{
"header": "Example panel",
"status": {
"label": "", "color": "green"
},
"tags": ["Apple", "Orange", "Kiwi"]
}
]
{
"data": [
{
"header": "Skoda Superb",
"power": "180PS@6200RPM",
"torque": "320Nm@1450-3900rpm",
"enginelocation": "Front, Transverse",
"fueltype": "Petrol",
"fuelsystem": "",
"city": "10.6 km/litre",
{
"data": [{
"header": "John card",
"location": "Team board / Deals won",
"link": "https://trello.com/c/V4iAGrRu/1-lopa"
},
{
"header": "Deal card",
"location": "General board / Important deals",
"link": "https://trello.com/c/wxNI1CKn/2-test-new"
<?php
namespace App\Http\Controllers;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
class HomeController extends Controller
{
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class PipedriveToken extends Model
{
protected $table = 'pipedrive_tokens';
protected $fillable = [
'user_id', 'body'
];
public function user()
@daniti
daniti / AuthController.php
Last active March 13, 2018 09:04
AuthController for Pipedrive Laravel app
<?php
namespace App\Http\Controllers\Auth;
use App\User as User;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Support\Facades\Auth;
use Laravel\Socialite\Facades\Socialite;