Skip to content

Instantly share code, notes, and snippets.

View freelance-github's full-sized avatar

freelance-github

View GitHub Profile
@freelance-github
freelance-github / laravel collection pagination
Created July 26, 2019 22:23
laravel collection pagination
<?php
namespace App\Providers;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
@freelance-github
freelance-github / dashboard.dart
Created July 17, 2019 23:47
orders management
import 'package:flutter/material.dart';
import '../packages/CIcons.dart';
import '../components/dashboard/CarouselCards.dart';
import 'package:scoped_model/scoped_model.dart';
import '../scopedModels/base.dart';
class DashboardPage extends StatefulWidget {
@override
State<StatefulWidget> createState() => _DashboardPageState();