There is any rule for model name?
Any buddy can tell me how to install yajra package in laravel7?
When this error show?
BTW this error meaning laravel can not find this method validateUsername, so where did you use this method?
u mean this line code?
Do you use any uuid for example in your posts table?
So what do you suggest to do?
Why would be dangerous?
So, you are showing you where wrong?
The format what you want is for display, so you can format it in blade or using mutator
But please save as YYYY-MM-DD hh:ii:ss
But please save as YYYY-MM-DD hh:ii:ss
ok sir
There is any rule for model name?!
I am trying to create List that extends from Model but I can’t use that unfortunately
There is any rule for model name?!
I am trying to create List that extends from Model but I can’t use that unfortunately
the only restrictions are the PHP reserved words
checkk out the list over here
https://www.php.net/manual/en/reserved.keywords.php
checkk out the list over here
https://www.php.net/manual/en/reserved.keywords.php
Unfortunately that is one of the restrictions
Thank you guys 😊
Yes as I checked that was my problem
Thanks
If package support laravel7, you can install with composer install command
You can find details in package github page

error
Did you use dd() to check where is the problem exactly?
which page?
You are using validateUsername but it is not reachable I think
BTW this error meaning laravel can not find this method validateUsername, so where did you use this method?
u mean this line code? vendorlaravelframeworksrcIlluminateValidationValidator.php:1301
Probably you are using validateUsername in your Controller or even your service
<?php
namespace AppHttpControllersAuth;
use AppHttpControllersController;
use AppProvidersRouteServiceProvider;
use AppUser;
use IlluminateFoundationAuthRegistersUsers;
use IlluminateSupportFacadesHash;
use IlluminateSupportFacadesValidator;
class RegisterController extends Controller
{
/*
|————————————————————————–
| Register Controller
|————————————————————————–
|
| This controller handles the registration of new users as well as their
| validation and creation. By default this controller uses a trait to
| provide this functionality without requiring any additional code.
|
*/
use RegistersUsers;
/
* Where to redirect users after registration.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;
/
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware(‘guest’);
}
/
* Get a validator for an incoming registration request.
*
* @param array $data
* @return IlluminateContractsValidationValidator
*/
protected function validator(array $data)
{
return Validator::make($data, [
‘name’ => [‘required’, ‘string’, ‘max:255′],
’email’ => [‘required’, ‘string’, ’email’, ‘max:255’, ‘unique:users’],
‘username’ => [‘required’, ‘string’, ‘username’, ‘max:255’, ‘unique:users’],
‘password’ => [‘required’, ‘string’, ‘min:8’, ‘confirmed’],
]);
}
/
* Create a new user instance after a valid registration.
*
* @param array $data
* @return AppUser
*/
protected function create(array $data)
{
return User::create([
‘name’ => $data[‘name’],
’email’ => $data[’email’],
‘username’ => $data[‘username’],
‘password’ => Hash::make($data[‘password’]),
]);
}
}
Yes like he said

Do you use any uuid for example in your posts table?!
I don’t want to share id column, I think it’s better to share #uuid
So what do you suggest to do?!
Do you use any uuid for example in your posts table?!
I don’t want to share id column, I think it’s better to share #uuid
So what do you suggest to do?!
For me It is not deference, uuid use with big tables I think, about sharing ID it is dangerous if you use police or gate I mean
Why would be dangerous?
Maybe it is custom rule you need check again
It is not*

see mohamed
Yes but he using username rule email……?