Skip to content

Instantly share code, notes, and snippets.

View FilipQL's full-sized avatar

Filip Zdravkovic FilipQL

View GitHub Profile
@FilipQL
FilipQL / 0. Laravel Ajax Pagination - Introduction.txt
Last active March 25, 2023 16:03
Laravel Ajax Pagination [LATEST]
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 / CommentController.php
Created October 10, 2016 18:51
Infinite Scroll Pagination Using Laravel & jScroll
<?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 March 3, 2021 02:21
Select2 and Laravel: Ajax Autocomplete
<?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
@FilipQL
FilipQL / cacert.pem
Last active March 22, 2017 23:01
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")
##
## 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
##