PHP | Laravel | Web Scraping
A curated list of amazingly awesome PHP libraries, resources and shiny things.
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<title>Awesome Foursquare app</title> | |
<style> | |
body{ | |
background-color: white; | |
font-size: 100%; | |
font-family: helvetica, arial, sans-serif; | |
} |
<link href='https://fonts.googleapis.com/css?family=Ubuntu:400,700' rel='stylesheet' type='text/css'> | |
<div class="owl-carousel testimonial-carousel"> | |
<!-- Start Testimonials --> | |
<!-- Testimonial 1 --> | |
<div class="single-testimonial"> | |
<div class="testimonials-wrapper"> | |
<h4>Habitasse lobortis cum malesuada nullam cras odio venenatis nisl at turpis sem in porta consequat massa a mus massa nascetur elit vestibulum a.</h4> | |
<div class="testimonials-blob"></div> | |
<div class="testimonials-img"><img src="https://randomuser.me/api/portraits/women/21.jpg"></div> |
.plvr fieldset { | |
padding: 0; | |
margin: 0; | |
border: 0; | |
min-width: 0; | |
} | |
.plvr legend { | |
display: block; | |
width: 100%; |
function custom_tax_init(){ | |
//set some options for our new custom taxonomy | |
$args = array( | |
'label' => __( 'My Custom Taxonomy' ), | |
'hierarchical' => true, | |
'capabilities' => array( | |
// allow anyone editing posts to assign terms | |
'assign_terms' => 'edit_posts', | |
/* but you probably don't want anyone |
<?php | |
namespace App\Exceptions; | |
use Exception; | |
use Illuminate\Validation\ValidationException; | |
use Illuminate\Auth\Access\AuthorizationException; | |
use Illuminate\Database\Eloquent\ModelNotFoundException; | |
use Symfony\Component\HttpKernel\Exception\HttpException; | |
use Laravel\Lumen\Exceptions\Handler as ExceptionHandler; |
PHP | Laravel | Web Scraping
A curated list of amazingly awesome PHP libraries, resources and shiny things.
0.0.0.0 account.jetbrains.com
into your hosts file (C:\Windows\System32\drivers\etc\hosts
or /etc/hosts
)K71U8DBPNE-eyJsaWNlbnNlSWQiOiJLNzFVOERCUE5FIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJSUzAiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJXUyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IlJEIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUkMiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJEQyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkRCIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUk0iLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkFDIiwicGFpZFVwVG8iOiIy
@php | |
if (Voyager::translatable($items)) { | |
$items = $items->load('translations'); | |
} | |
@endphp | |
<ul class="navbar-nav ml-auto"> | |
@foreach($items as $item) |
#Blade | |
<form id="delete-company" action="{{ route('company.destroy', $company->id) }}" method="post"> | |
{{csrf_field()}} | |
{{method_field('delete')}} | |
<button type="button" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#agent{{$company->id}}">Edit</button> | |
<button type="button" class="btn btn-danger btn-xs" onclick="confirmDelete('delete-company')">delete</button> | |
</form> |
Follow this guide to integrate bar chart reports into your Laravel application. Reports like the following come with this guide:
The library used for the charts is: http://www.oesmith.co.uk/morris.js/
First put this into your page that will have the reports (in the Blade view) to include Morris library: