PHP code example of mvanduijker / laravel-model-exists-rule
1. Go to this page and download the library: Download mvanduijker/laravel-model-exists-rule 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/ */
mvanduijker / laravel-model-exists-rule example snippets
use Duijker\LaravelModelExistsRule\ModelExists;
use Illuminate\Foundation\Http\FormRequest;
class ExampleUserRequest extends FormRequest
{
public function rules()
{
return [
'user_id' => [
'
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class ExampleUserRequest extends FormRequest
{
public function rules()
{
return [
'user_id' => [
'
}),
],
];
}
}