Or I can find a free service for this?

|
Unknownuser009 2020-07-10 19:40:09
Anu 2020-07-10 18:59:27
2d banners and YouTube, fb ads

All.the bammer on youtube means all digital.networks

2020-07-10 19:41:02
harmlez_prinz 2020-07-10 19:13:47
It is a pdo_mysql error.

I only know off how to fix this on local machine….

Thanks anyway

harmlez_prinz 2020-07-10 19:41:37
2020-07-10 19:41:02
Thanks anyway

Okay, please, if u find a solution

harmlez_prinz 2020-07-10 19:41:47
I will like to hear
rijisoft 2020-07-10 19:43:21
Hi

I want to show a map base on location of user

Then user click on marker and change marker cursor

At the end hit the save button , then latitude and longitude save on my database

Is these functionalities needs Google map API .??

Or I can find a free service for this ?

2020-07-10 20:34:37
hi
I want to have the default photo for my users, but there are two problems. The first problem is that it puts the address of the photo from the folder of the drive path and
I also have the default photo error
2020-07-10 20:35:11
if (request()->has(‘avatar’)) {
$avatarapload = request()->file(‘avatar’);
$avatarname = time() . ‘.’ . $avatarapload->getClientOriginalExtension();
$avatarpath = public_path(‘/images/’);
$avatarapload->move($avatarpath, $avatarname);
return User::create([
‘name’ => $data[‘name’],
‘lastname’ => $data[‘lastname’],
’email’ => $data[’email’],
‘password’ => Hash::make($data[‘password’]),
‘avatar’ => $avatarapload
]);

}

2020-07-10 20:35:21
This is my code
isofdev 2020-07-10 20:35:57
2020-07-10 20:35:11
if (request()->has(‘avatar’)) {
$avatarapload = request()->file(‘avatar’);
$avatarname = time() . ‘.’ . $avatarapload->getClientOriginalExtension();
$avatarpath = public_path(‘/images/’);
$avatarapload->move($avatarpath, $avatarname);
return User::create([
‘name’ => $data[‘name’],
‘lastname’ => $data[‘lastname’],
’email’ => $data[’email’],
‘password’ => Hash::make($data[‘password’]),
‘avatar’ => $avatarapload
]);

}

Change has by hasFile

2020-07-10 20:36:49
isofdev 2020-07-10 20:35:57
Change has by hasFile

More explanation

2020-07-10 20:37:29
isofdev 2020-07-10 20:35:57
Change has by hasFile

OK

isofdev 2020-07-10 20:38:41
2020-07-10 20:35:11
if (request()->has(‘avatar’)) {
$avatarapload = request()->file(‘avatar’);
$avatarname = time() . ‘.’ . $avatarapload->getClientOriginalExtension();
$avatarpath = public_path(‘/images/’);
$avatarapload->move($avatarpath, $avatarname);
return User::create([
‘name’ => $data[‘name’],
‘lastname’ => $data[‘lastname’],
’email’ => $data[’email’],
‘password’ => Hash::make($data[‘password’]),
‘avatar’ => $avatarapload
]);

}

in if($request->file(‘image’)) change it by if($request->hasFile(‘image’))

2020-07-10 20:38:51
it has error
2020-07-10 20:39:01
Argument 1 passed to IlluminateAuthSessionGuard::login() must be an instance of IlluminateContractsAuthAuthenticatable, string given, called in D:bithtdocsforomvendorlaravelframeworksrcIlluminateFoundationAuthRegistersUsers.php on line 35
isofdev 2020-07-10 20:41:51
2020-07-10 20:38:51
it has error

Remove () in $request()-

2020-07-10 20:44:22
isofdev 2020-07-10 20:41:51
Remove () in $request()-

Sorry the same error

isofdev 2020-07-10 20:44:57
Screenshots please?
2020-07-10 20:46:14
laravel_discuss-44567.jpg

2020-07-10 20:48:45
$table->bigIncrements(‘id’);
$table->string(‘name’)->nullable();
$table->string(‘lastname’)->nullable();
$table->string(‘provider_name’)->nullable();
$table->string(‘provider_id’)->nullable();
$table->string(’email’)->unique();
$table->timestamp(’email_verified_at’)->nullable();
$table->string(‘password’)->nullable();
$table->string(‘avatar’)->default(‘/images/download.png’)->nullable();
$table->boolean(‘falg’)->default(1);
$table->softDeletes();
$table->rememberToken()->nullable();
$table->timestamps();
2020-07-10 20:48:56
This is my table
isofdev 2020-07-10 20:51:01
2020-07-10 20:48:56
This is my table

Show me controller

2020-07-10 20:51:38
isofdev 2020-07-10 20:51:01
Show me controller

protected function validator(array $data)
{
return Validator::make($data, [
‘name’ => [‘required’, ‘string’, ‘max:255′],
’email’ => [‘required’, ‘string’, ’email’, ‘max:255’, ‘unique:users’],
‘password’ => [‘required’, ‘string’, ‘min:8’, ‘confirmed’, ‘nullable’],
‘avatar’ => [‘sometimes’, ‘image’, ‘mimes:jpg,jpeg,bmp,svg,png’, ‘max:5000’]

]);
}

/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return AppUser
*/
protected function create(array $data)
{

if (request()->hasFile(‘avatar’)) {
$avatarapload =file(‘avatar’);
$avatarname = time() . ‘.’ . $avatarapload->getClientOriginalExtension();
$avatarpath = public_path(‘/images/’);
$avatarapload->move($avatarpath, $avatarname);
return User::create([
‘name’ => $data[‘name’],
‘lastname’ => $data[‘lastname’],
’email’ => $data[’email’],
‘password’ => Hash::make($data[‘password’]),
‘avatar’ => $avatarapload
]);

}
return “ok”;

isofdev 2020-07-10 21:00:42
2020-07-10 20:51:38
protected function validator(array $data)
{
return Validator::make($data, [
‘name’ => [‘required’, ‘string’, ‘max:255′],
’email’ => [‘required’, ‘string’, ’email’, ‘max:255’, ‘unique:users’],
‘password’ => [‘required’, ‘string’, ‘min:8’, ‘confirmed’, ‘nullable’],
‘avatar’ => [‘sometimes’, ‘image’, ‘mimes:jpg,jpeg,bmp,svg,png’, ‘max:5000’]

]);
}

/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return AppUser
*/
protected function create(array $data)
{

if (request()->hasFile(‘avatar’)) {
$avatarapload =file(‘avatar’);
$avatarname = time() . ‘.’ . $avatarapload->getClientOriginalExtension();
$avatarpath = public_path(‘/images/’);
$avatarapload->move($avatarpath, $avatarname);
return User::create([
‘name’ => $data[‘name’],
‘lastname’ => $data[‘lastname’],
’email’ => $data[’email’],
‘password’ => Hash::make($data[‘password’]),
‘avatar’ => $avatarapload
]);

}
return “ok”;

Look you if in create function
in if(request()->hasFile(‘avatar’)) change it by if($request->hasFile(‘avatar’){
And change $avatarpload=file(‘avatar’) by $avatarpload=$request->file(‘avatar’);

}

firmandev 2020-07-10 21:33:50
kalo mau ganti jwt field id gmn ya ?
firmandev 2020-07-10 21:34:00
klo pass kan ud dapet
…. 2020-07-10 22:16:04
mohittyagi99 2020-07-10 18:15:06
Restart Server!

I solved this problem

…. 2020-07-10 22:16:45
cayetanohosma 2020-07-10 00:30:59
Information I would like to suggest you to use Docker or Vagrant instead Laragon. In that way you can switch between projects without concerns

Some laragon are web server

…. 2020-07-10 22:18:40
laravel_discuss-44579.jpg
What solve this problem
isofdev 2020-07-10 22:21:18
…. 2020-07-10 22:18:40
What solve this problem

Show code

…. 2020-07-10 22:23:52
laravel_discuss-44581.jpg

…. 2020-07-10 22:23:53
laravel_discuss-44583.jpg

…. 2020-07-10 22:23:53
laravel_discuss-44582.jpg

…. 2020-07-10 22:23:54
laravel_discuss-44585.jpg

…. 2020-07-10 22:23:54
laravel_discuss-44584.jpg

isofdev 2020-07-10 22:26:14
…. 2020-07-10 22:23:52

Why you comment use AppTodo

…. 2020-07-10 22:26:57
laravel_discuss-44588.jpg
Because this
…. 2020-07-10 22:27:31
isofdev 2020-07-10 22:26:14
Why you comment use AppTodo

is not found but I do it

…. 2020-07-10 22:28:04
…. 2020-07-10 22:26:57
Because this

but appeare this problem

…. 2020-07-10 22:30:35
But php artisan migrate works
isofdev 2020-07-10 22:31:25
…. 2020-07-10 22:27:31
is not found but I do it

Remove comment

…. 2020-07-10 22:31:38
The migration works to the database
…. 2020-07-10 22:31:52
isofdev 2020-07-10 22:31:25
Remove comment

OK
But

…. 2020-07-10 22:32:19
…. 2020-07-10 22:26:57
Because this

appeare this

…. 2020-07-10 22:33:08
…. 2020-07-10 22:32:19
appeare this

No this

…. 2020-07-10 22:33:26
…. 2020-07-10 22:18:40
What solve this problem

This appeared

isofdev 2020-07-10 22:36:41
…. 2020-07-10 22:23:52

In return view put this
Return view (‘todos.todos’, compact(‘mytodos’))

isofdev 2020-07-10 22:38:38
And in your blade file replace $todos by $mytodos at the foreach
…. 2020-07-10 22:38:49
Ok
…. 2020-07-10 22:39:13
Now
isofdev 2020-07-10 22:39:41
…. 2020-07-10 22:39:13
Now

It gonna work

|