2017 © Pedro Peláez
 

library laravel-bridge

use laravel eloquent, view, pagination anywhere

image

recca0120/laravel-bridge

use laravel eloquent, view, pagination anywhere

  • Friday, June 16, 2017
  • by recca0120
  • Repository
  • 4 Watchers
  • 21 Stars
  • 92 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

, (*1)

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License Monthly Downloads Daily Downloads , (*2)

Installation

Add Presenter to your composer.json file:, (*3)

"require": {
    "recca0120/laravel-bridge": "^1.0.0"
}

Require illuminate/translation when using Pagination., (*4)

Now, run a composer update on the command line from the root of your project:, (*5)

composer update

NOTICE: NOT support Laravel 5.4.*, (*6)

How to use

setup, (*7)

use Recca0120\LaravelBridge\Laravel;

require __DIR__.'/vendor/autoload.php';

$connections = [
    'default' => [
        'driver'    => 'mysql',
        'host'      => 'localhost',
        'port'      => 3306,
        'database'  => 'forge',
        'username'  => 'forge',
        'password'  => '',
        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',
        'prefix'    => '',
        'strict'    => false,
        'engine'    => null,
    ],
];

Laravel::instance()
    ->setupView(__DIR__.'/views/', __DIR__.'/views/cache/compiled/')
    ->setupDatabase($connections)
    ->setupPagination()
    ->setupTracy([
        'showBar' => true
    ]);

eloquent, (*8)

class User extends \Illuminate\Database\Eloquent\Model
{
    protected $fillable = [
       'name',
       'email',
       'password',
   ];
}

var_dump(User::all());

view, (*9)

view.blade.php, (*10)

@foreach ($rows as $row)
    {{ $row }};
@endforeach

view, (*11)

echo View::make('view', ['rows' => [1, 2, 3]]);

Example

Laraigniter, (*12)

The Versions

16/06 2017

dev-master

9999999-dev

use laravel eloquent, view, pagination anywhere

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

30/10 2016

v1.0.1

1.0.1.0

use laravel eloquent, view, pagination anywhere

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan

31/07 2016

v1.0.0

1.0.0.0

use laravel eloquent, view, pagination anywhere

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar recca0120

laravel console terminal artisan web web artisan