Skip to content

Instantly share code, notes, and snippets.

Avatar

Filip Zdravkovic FilipQL

View GitHub Profile
@FilipQL
FilipQL / CommentController.php
Created Oct 10, 2016
Infinite Scroll Pagination Using Laravel & jScroll
View CommentController.php
<?php
// For more details see: http://laraget.com/blog/implementing-infinite-scroll-pagination-using-laravel-and-jscroll
namespace App\Http\Controllers\InfiniteScrolling;
use App\Comment;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
@FilipQL
FilipQL / TagController.php
Last active Mar 3, 2021
Select2 and Laravel: Ajax Autocomplete
View TagController.php
<?php
/* For more details see: http://laraget.com/blog/select2-and-laravel-ajax-autocomplete */
namespace App\Http\Controllers\Select2Ajax;
use App\Tag;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class TagController extends Controller
View 0. Laravel Ajax Pagination - Introduction.txt
Tested with Laravel 5.2 and 5.3. For more details see: http://laraget.com/blog/how-to-create-an-ajax-pagination-using-laravel
Let's say that we have a simple Laravel webiste with articles.
We want to have Ajax pagination on the page that shows (lists) all of the articles (for example, this page can be accessed from www.example.com/articles and it displays paginated lists of article titles.
The following files are described here:
- resources\views\articles\index.blade.php
- resources\views\articles\load.blade.php
- app\Http\Controllers\ArticleController.php
@FilipQL
FilipQL / cacert.pem
Last active Mar 22, 2017
Fix cURL error 60 SSL certificate problem - add cacert.pem to php\extras\ssl and then in php.ini set curl.cainfo to its location (eg. curl.cainfo = "C:\xampp\php\extras\ssl\cacert.pem")
View cacert.pem
##
## ca-bundle.crt -- Bundle of CA Root Certificates
##
## Certificate data from Mozilla as of: Sat Dec 29 20:03:40 2012
##
## This is a bundle of X.509 certificates of public Certificate Authorities
## (CA). These were automatically extracted from Mozilla's root certificates
## file (certdata.txt). This file can be found in the mozilla source tree:
## http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1
##