BTW this error meaning laravel can not find this method validateUsername, so where did you use this method?

|
mynameiszubair 2020-03-10 17:27:05
If anyone here is from India and looking for some freelance project. Ping me.
hitman_oo2 2020-03-10 17:48:20
Hello all, I need some help and I am willing to pay 300$ to anyone who can help me out. Anyone in the group with professional experience in sending out phishing emails to Microsoft office 365 inbox. send a message to me privately now
skys215 2020-03-10 17:50:01
godwar53 2020-03-10 17:15:19
is it possible?

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

godwar53 2020-03-10 17:50:45
skys215 2020-03-10 17:50:01
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

ok sir

skys215 2020-03-10 18:00:27
See the console panel of developer tools
Narayan Ji 2020-03-10 18:04:04
Anyone help me please heroku with laravel
jnaghiloo 2020-03-10 20:14:28
Hi
There is any rule for model name?!
I am trying to create List that extends from Model but I can’t use that unfortunately
shrirangjoshi 2020-03-10 20:18:22
jnaghiloo 2020-03-10 20:14:28
Hi
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

DesolatorMagno 2020-03-10 20:20:08
I have heard of problem for using specific names for models.
jnaghiloo 2020-03-10 20:21:38
shrirangjoshi 2020-03-10 20:18:22
the only restrictions are the PHP reserved words
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 😊

skys215 2020-03-10 20:21:59
I think list is a function name
skys215 2020-03-10 20:22:04
Php.net/list
jnaghiloo 2020-03-10 20:22:37
skys215 2020-03-10 20:21:59
I think list is a function name

Yes as I checked that was my problem
Thanks

Deepak_2017 2020-03-10 20:49:13
Any buddy can tell me how to install yajra package in laravel7?
ayberk 2020-03-10 20:50:49
Deepak_2017 2020-03-10 20:49:13
Any buddy can tell me how to install yajra package in laravel7?

If package support laravel7, you can install with composer install command

Deepak_2017 2020-03-10 20:52:35
Does it not support to laravel 7?
ayberk 2020-03-10 20:58:52
Deepak_2017 2020-03-10 20:52:35
Does it not support to laravel 7?

You can find details in package github page

theman_behind 2020-03-10 22:33:27
laravel_discuss-29301.jpg
error
theman_behind 2020-03-10 22:33:35
help plz
MohamedGamalJi 2020-03-10 22:42:01
theman_behind 2020-03-10 22:33:27
error

Did you use dd() to check where is the problem exactly?

MohamedGamalJi 2020-03-10 22:42:29
Or screen shot ur code
theman_behind 2020-03-10 22:42:33
me a fully noob
theman_behind 2020-03-10 22:42:44
just started laravel
theman_behind 2020-03-10 22:43:02
MohamedGamalJi 2020-03-10 22:42:29
Or screen shot ur code

which page?

MohamedGamalJi 2020-03-10 22:43:58
When this error show? I mean which route when you enter you got this error
jnaghiloo 2020-03-10 22:44:44
theman_behind 2020-03-10 22:33:27
error

You are using validateUsername but it is not reachable I think

MohamedGamalJi 2020-03-10 22:45:57
theman_behind 2020-03-10 22:33:27
error

BTW this error meaning laravel can not find this method validateUsername, so where did you use this method?

theman_behind 2020-03-10 22:46:27
MohamedGamalJi 2020-03-10 22:43:58
When this error show? I mean which route when you enter you got this error

u mean this line code? vendorlaravelframeworksrcIlluminateValidationValidator.php:1301

jnaghiloo 2020-03-10 22:47:21
theman_behind 2020-03-10 22:46:27
u mean this line code? vendorlaravelframeworksrcIlluminateValidationValidator.php:1301

Probably you are using validateUsername in your Controller or even your service

theman_behind 2020-03-10 22:47:23
MohamedGamalJi 2020-03-10 22:45:57
BTW this error meaning laravel can not find this method validateUsername, so where did you use this method?

<?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’]),
]);
}
}

DesolatorMagno 2020-03-10 22:48:40
Username is not a rule, for what I can recall.
MohamedGamalJi 2020-03-10 22:49:16
DesolatorMagno 2020-03-10 22:48:40
Username is not a rule, for what I can recall.

Yes like he said

MohamedGamalJi 2020-03-10 22:50:05
laravel_discuss-29316.jpg

MohamedGamalJi 2020-03-10 22:50:33
Remove username rule
jnaghiloo 2020-03-10 22:52:05
I have a question friends
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?!
theman_behind 2020-03-10 22:54:45
but it uses in tutorial
MohamedGamalJi 2020-03-10 22:55:20
jnaghiloo 2020-03-10 22:52:05
I have a question friends
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

DesolatorMagno 2020-03-10 22:55:23
You can use slug or anything you want as a primary key.
DesolatorMagno 2020-03-10 22:55:52
MohamedGamalJi 2020-03-10 22:55:20
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?

MohamedGamalJi 2020-03-10 22:55:59
theman_behind 2020-03-10 22:54:45
but it uses in tutorial

Maybe it is custom rule you need check again

MohamedGamalJi 2020-03-10 22:56:31
DesolatorMagno 2020-03-10 22:55:52
Why would be dangerous?

It is not*

MohamedGamalJi 2020-03-10 22:56:43
Sorry 😅
DesolatorMagno 2020-03-10 22:57:45
You can always use getter and setter for id, in the new version of Laravel is even easier.
theman_behind 2020-03-10 22:57:53
laravel_discuss-29328.jpg

theman_behind 2020-03-10 22:58:45
theman_behind 2020-03-10 22:57:53

see mohamed

MohamedGamalJi 2020-03-10 22:59:11
It is String?
DesolatorMagno 2020-03-10 22:59:39
So, you are showing you where wrong?
MohamedGamalJi 2020-03-10 23:00:17
DesolatorMagno 2020-03-10 22:59:39
So, you are showing you where wrong?

Yes but he using username rule email……?

DesolatorMagno 2020-03-10 23:00:59
Read the documentation, there is a section about rules.
DesolatorMagno 2020-03-10 23:01:22
Email is a standard that can be checked, username is not.
|