How can I achieve this without using default migrations or models?

|
2022-07-12 00:49:26
investor_sinde 2022-07-12 00:47:12
Not working here

Show me ur code

investor_sinde 2022-07-12 00:51:39
No
Adetollar 2022-07-12 01:03:11
investor_sinde 2022-07-12 00:51:39
No

Lol

investor_sinde 2022-07-12 01:03:45
Why you laughing
Adetollar 2022-07-12 01:03:51
You don’t want to show your implementation but you want people to help you. Funny
Candra 2022-07-12 01:05:43
#ask how to debug program?
investor_sinde 2022-07-12 01:07:41
Guys I need to learn a lot
investor_sinde 2022-07-12 03:24:56
Any one
Ohannesburg 2022-07-12 03:44:42
investor_sinde 2022-07-12 03:24:56
Any one

Do you have a usb port behind your head?

Vimal Dudhat 2022-07-12 04:49:45
investor_sinde 2022-07-12 01:07:41
Guys I need to learn a lot

Send a screenshot of your code.. So some one will find your mistake and help you

Nandhu 2022-07-12 04:54:02
I need validation code for email and mobile and name
Email correct email format
Mobile number only
Name alphabet only
How to do,I try some codes
PemudaKoding 2022-07-12 04:54:32
can using laravel validation
PemudaKoding 2022-07-12 04:54:42
if want to validation in server side
karthick2828 2022-07-12 05:37:05
Https://gegok12.com

GegoK12 – Advanced School Management SoftwareGegoK12
GegoK12 is advanced School Management Software, crafted to effectively communicate with Parents and Students through Mobile App.
Nandhu 2022-07-12 05:58:29
PemudaKoding 2022-07-12 04:54:42
if want to validation in server side

I try validation on my controller

2022-07-12 07:46:58
investor_sinde 2022-07-12 00:45:44
Ajax not working with file upload laravel

Using formData to appending file, check this might help you
https://www.cambotutorial.com/article/laravel-9-ajax-image-upload-in-database

Laravel 9 Ajax Image Upload in Databasehttps://www.cambotutorial.com
We will explain detail in Laravel 9 using Ajax to upload image and preview on webpage before upload. You will learn upload image using Ajax inΒ Laravel 9 with validation. We will try to find simple example to show how
crazycaw 2022-07-12 09:35:06
I ve just upgrade from laravel 7 to laravel 9 and I see a big problem. I used before sometimes request()->request->add(.,..) and now doesnt work, it is normal?
anilsaini0663 2022-07-12 09:50:50
I have created many panels on laravel site but one of them is getting error in extends layouts file
Tobel_l 2022-07-12 10:11:53
what is @livewireStyles? what is it’s purpose?. Thanks in advance
krisnaa 2022-07-12 10:50:33
Mr Chandra 2022-07-08 13:53:41
Looking for a job in mnc company in react. Those can give reference inbox me. Location Noida or remote job.

Send dm mate

John 2022-07-12 11:01:56
Tobel_l 2022-07-12 10:11:53
what is @livewireStyles? what is it’s purpose?. Thanks in advance

Adds livewire css to your layout.

nanribet 2022-07-12 11:15:02
Cannot access offset of type string on string

Please, I’m having issues here, i’m getting this above children

Tobel_l 2022-07-12 11:20:51
John 2022-07-12 11:01:56
Adds livewire css to your layout.

Thanks πŸ‘

nanribet 2022-07-12 11:23:26
OK
masoudHarooni 2022-07-12 11:38:14
Hello guys, I hope you’re doing well.
I need your help,πŸ™πŸ»

When I’m installing laravel, the composer doesn’t install laravel completely for me, gives me a message, and doesn’t create my “Vendor” and lock.json file.

Can you help me, how can I solve this problem?

The message is :
Problem 1
– laravel/framework[v9.19.0, …, 9.x-dev] require league/flysystem ^3.0.16 -> satisfiable by league/flysystem[3.0.16, …, 3.x-dev].
– league/flysystem[3.0.16, …, 3.x-dev] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, …, 1.11.0].
– league/mime-type-detection[1.0.0, …, 1.3.0] require php ^7.2 -> your php version (8.1.0) does not satisfy that requirement.
– league/mime-type-detection[1.4.0, …, 1.11.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP’s fileinfo extension.
– Root composer.json requires laravel/framework ^9.19 -> satisfiable by laravel/framework[v9.19.0, 9.x-dev].

To enable extensions, verify that they are enabled in your .ini files:
– C:\Program Files\php-8.1.0\php.ini
You can also run php –ini inside terminal to see which files are used by PHP in CLI mode.

John 2022-07-12 11:44:37
masoudHarooni 2022-07-12 11:38:14
Hello guys, I hope you’re doing well.
I need your help,πŸ™πŸ»

When I’m installing laravel, the composer doesn’t install laravel completely for me, gives me a message, and doesn’t create my “Vendor” and lock.json file.

Can you help me, how can I solve this problem?

The message is :
Problem 1
– laravel/framework[v9.19.0, …, 9.x-dev] require league/flysystem ^3.0.16 -> satisfiable by league/flysystem[3.0.16, …, 3.x-dev].
– league/flysystem[3.0.16, …, 3.x-dev] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, …, 1.11.0].
– league/mime-type-detection[1.0.0, …, 1.3.0] require php ^7.2 -> your php version (8.1.0) does not satisfy that requirement.
– league/mime-type-detection[1.4.0, …, 1.11.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP’s fileinfo extension.
– Root composer.json requires laravel/framework ^9.19 -> satisfiable by laravel/framework[v9.19.0, 9.x-dev].

To enable extensions, verify that they are enabled in your .ini files:
– C:\Program Files\php-8.1.0\php.ini
You can also run php –ini inside terminal to see which files are used by PHP in CLI mode.

Enable mentioned extensions in your php.ini.

masoudHarooni 2022-07-12 11:46:08
John 2022-07-12 11:44:37
Enable mentioned extensions in your php.ini.

which extension you mean?

John 2022-07-12 11:50:53
masoudHarooni 2022-07-12 11:46:08
which extension you mean?

I think it’s fileinfo extensions. Edit your php.ini and enable. Then try installation again.

masoudHarooni 2022-07-12 11:56:56
John 2022-07-12 11:50:53
I think it’s fileinfo extensions. Edit your php.ini and enable. Then try installation again.

laravel_discuss-128776.jpg
This parameter is uncommented by default in the xampp.

daysandbox_bot 2022-07-12 11:58:44
Message from 1 Akko deleted. Reason: external link (???)
John 2022-07-12 12:00:40
masoudHarooni 2022-07-12 11:56:56
This parameter is uncommented by default in the xampp.

That’s a composer. Check that the php version that composer uses has the extension enable

John 2022-07-12 12:10:17
John 2022-07-12 12:00:40
That’s a composer. Check that the php version that composer uses has the extension enable

C:\Program Files\php-8.1.0\php.ini

masoudHarooni 2022-07-12 12:17:31
John 2022-07-12 12:10:17
C:\Program Files\php-8.1.0\php.ini

Thank you so much, bro, my problem is solved.πŸ™πŸ»πŸ™πŸ»πŸ™πŸ»

Mohammed Iliyas 2022-07-12 12:55:09
Ajax not working files uploading pls help me
Bhushan Choudhary 2022-07-12 12:58:51
{“code”:”AUTHENTICATION_FAILURE”,”details”:{},”message”:”Authentication failed”,”status”:”error”} to get data from zoho
samdanielp 2022-07-12 14:09:08
Hi, I have a working database and I want to connect to that DB for login purposes. I am not using any migrations that comes with Laravel. I have implemented login already and it is working. But I cannot able to check if the user is authroized or not (Auth middleware). My routes are not working if I tried Auth middleware.
How can I achieve this without using default migrations or models?
New_Rhon 2022-07-12 14:24:46
samdanielp 2022-07-12 14:09:08
Hi, I have a working database and I want to connect to that DB for login purposes. I am not using any migrations that comes with Laravel. I have implemented login already and it is working. But I cannot able to check if the user is authroized or not (Auth middleware). My routes are not working if I tried Auth middleware.
How can I achieve this without using default migrations or models?

Can I have a look at your code

New_Rhon 2022-07-12 14:25:09
To connect the database go to .env file and add your database preferences
didaputraad 2022-07-12 14:27:02
samdanielp 2022-07-12 14:09:08
Hi, I have a working database and I want to connect to that DB for login purposes. I am not using any migrations that comes with Laravel. I have implemented login already and it is working. But I cannot able to check if the user is authroized or not (Auth middleware). My routes are not working if I tried Auth middleware.
How can I achieve this without using default migrations or models?

Store log for exception handle

samdanielp 2022-07-12 14:34:09
didaputraad 2022-07-12 14:27:02
Store log for exception handle

This is my login code
———————
$username = $request->input_username;
$password = $request->input_password;
if ($username && $password) {
$user = DB::table(‘dbo.user_Manager’)
->select(‘User_Name’, ‘Emp_Name’, ‘Password’)
->where(‘User_Name’, ‘=’, $username)
->get();
if ($user->first()) {
if ($password == base64_decode($user[0]->Password)) {
$request->session()->regenerate();
$request->session()->put(‘username’, $username);
return redirect()->route(‘search’);
} else {
return redirect(‘/’);
}
} else {
return redirect(‘/’);
}
}

This is my Routes file
———————
Route::group([‘middleware’ => [‘auth’]], function () {
Route::get(‘/search’, [SearchController::class, ‘index’])->name(‘search’);
});

didaputraad 2022-07-12 14:38:09
The code is bad
didaputraad 2022-07-12 14:39:43
samdanielp 2022-07-12 14:34:09
This is my login code
———————
$username = $request->input_username;
$password = $request->input_password;
if ($username && $password) {
$user = DB::table(‘dbo.user_Manager’)
->select(‘User_Name’, ‘Emp_Name’, ‘Password’)
->where(‘User_Name’, ‘=’, $username)
->get();
if ($user->first()) {
if ($password == base64_decode($user[0]->Password)) {
$request->session()->regenerate();
$request->session()->put(‘username’, $username);
return redirect()->route(‘search’);
} else {
return redirect(‘/’);
}
} else {
return redirect(‘/’);
}
}

This is my Routes file
———————
Route::group([‘middleware’ => [‘auth’]], function () {
Route::get(‘/search’, [SearchController::class, ‘index’])->name(‘search’);
});

Response ?

samdanielp 2022-07-12 14:41:01
didaputraad 2022-07-12 14:38:09
The code is bad

Can you guide me Why this code is bad. It is already in running condition.
Also, what do you mean by “response”

didaputraad 2022-07-12 14:42:55
Your structur is dangerous
didaputraad 2022-07-12 14:43:23
Use try catch implementation it
samdanielp 2022-07-12 14:44:17
okay. But how can I implement Auth and Session details with this?
didaputraad 2022-07-12 14:48:15
Use middleware for auth
didaputraad 2022-07-12 14:48:32
Have a session ?
samdanielp 2022-07-12 14:51:53
didaputraad 2022-07-12 14:48:15
Use middleware for auth

I dont know how to implement that. Can you refer me any tutorials for that.

DesolatorMagno 2022-07-12 14:53:12
From what I can see of your code, you should try whit a begginer course, try the laracast course.
|