A subset of CakePhp like functionalities for Laravel ! You can use it to migrate smoothly
Run this command to install it via packagist
composer require satnin/cakeflowAfter installation, you need to work through these steps to start using Cakeflow
// bootstrap/providers.php
return [
App\Providers\AppServiceProvider::class,
//Add the line bellow
\cakeflow\Providers\CakeflowServiceProvider::class
];// app/Http/Controllers/Controller.php
abstract class Controller extends \cakeflow\Controllers\Controller
{
}// app/Http/Controllers/Components/MyComponent.php
class MyComponent extends \cakeflow\Controllers\Components\Component
{
public function startup(EventInterface|null $event = null)
{
// Startup logic here for example
}
}class TestController extends Controller
{
public function initialize()
{
parent::initialize();
$this->loadComponent(AuthComponent::class);
}
public function beforeFilter(\cakeflow\Dispatchers\Events\EventInterface $event)
{
parent::beforeFilter($event); // TODO: Change the autogenerated stub
}
public function beforeRender(\cakeflow\Dispatchers\Events\EventInterface $event)
{
parent::beforeRender($event); // TODO: Change the autogenerated stub
}
//...
}