1. Go to this page and download the library: Download internexus/larapid library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
internexus / larapid example snippets
namespace App\Providers;
use App\Entities\UserEntity;
use Illuminate\Support\ServiceProvider;
use Internexus\Larapid\Facades\Larapid;
class LarapidServiceProvider extends ServiceProvider
{
public function register()
{
Larapid::entities([
UserEntity::class,
]);
}
}
namespace App\Entities;
use App\Models\User;
use Internexus\Larapid\Entities\Entity;
use Internexus\Larapid\Fields\Email;
use Internexus\Larapid\Fields\Password;
use Internexus\Larapid\Fields\Text;
class UserEntity extends Entity
{
public static $model = User::class;
public static $title = 'Usuários';
public function fields() {
return [
Text::make('Nome', 'name')->rules('