recca0120/laravel-bridge
Installation
Add Presenter to your composer.json file:
"require": {
"recca0120/laravel-bridge": "^1.0.0"
}
Require
illuminate/translationwhen using Pagination.
Now, run a composer update on the command line from the root of your project:
composer update
NOTICE: NOT support Laravel 5.4.*
How to use
setup
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
class User extends \Illuminate\Database\Eloquent\Model
{
protected $fillable = [
'name',
'email',
'password',
];
}
var_dump(User::all());
view
view.blade.php
@foreach ($rows as $row)
{{ $row }};
@endforeach
view
echo View::make('view', ['rows' => [1, 2, 3]]);
Example
Related Packages
hmazter/laravel-schedule-list
Laravel package to add command to list all scheduled artisan commands
443,139
94
tomshaw/laravel-calendar-table
A Laravel calendar table database migration and console command.
66,493
8
vkovic/laravel-commando
Collection of handy Laravel artisan commands that most projects needs
48,840
61
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.1.0 | >=5.5.9 | ^5.2 | MIT | |
| v1.0.1 | >=5.5.9 | ^5.2 | MIT | |
| v1.0.0 | >=5.5.9 | ^5.2 | MIT |