Are you a job recruiter, and you have a project, and need a freelancer to help you to complete it for you?

|
didaputraad 2022-07-12 14:53:32
samdanielp 2022-07-12 14:51:53
I dont know how to implement that. Can you refer me any tutorials for that.

https://lorisleiva.com/conciliating-laravel-and-ddd

Conciliating Laravel and DDDLoris
This article focuses on finding common grounds for using Domain-Driven Design in the Laravel framework in a way that leverages a maximum of Laravel features.
didaputraad 2022-07-12 14:54:04
Learning it , so scaleup projects
samdanielp 2022-07-12 14:54:50
Okay. Thank you
rebory 2022-07-12 15:02:44
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’);
});

Fully wrong why you encrypt 64encode its very unsafe. Use laravel fefault authentication

samdanielp 2022-07-12 15:04:01
rebory 2022-07-12 15:02:44
Fully wrong why you encrypt 64encode its very unsafe. Use laravel fefault authentication

I already have a SQL Server database which uses base64 encryption which uses C#.net as fronend. Now i am converting it into Laravel. So I used that. πŸ™‚

DesolatorMagno 2022-07-12 15:11:16
You could do it with C#, Haskell or Rusk, and it would still be insecure and wrong.

But if is already made and if it won’t be change them there is not much that Laravel can do for it.

Why don’t you try to check how Laravel manage the log in and session and just work like that?

samdanielp 2022-07-12 15:13:19
DesolatorMagno 2022-07-12 15:11:16
You could do it with C#, Haskell or Rusk, and it would still be insecure and wrong.

But if is already made and if it won’t be change them there is not much that Laravel can do for it.

Why don’t you try to check how Laravel manage the log in and session and just work like that?

Yeag. That is the thing I still haven’t figured it out yet since I have to decrypt using base64. Otherwise I may use default Auth.

ForgeDark 2022-07-12 18:25:21
Who has Digital Ocean Account with credit inside for sale vs btc
Darjus Z 2022-07-12 18:29:26
Hello guys who can explain more about Laravel Vite now ?
Darjus Z 2022-07-12 18:30:08
I have a question it is now requires node.js for working on hosting server
DesolatorMagno 2022-07-12 18:32:40
That is a option for those that work in the front, you can work how you used to be when there was laravel Mix.
Darjus Z 2022-07-12 18:43:39
but can it work as mix or not? for example im worked with Laravel Inertia Vue Mix and every thing seems to be ok but as i configure for Vite its build static site and require node js to work as server?
segungreat 2022-07-12 18:48:18
Darjus Z 2022-07-12 18:43:39
but can it work as mix or not? for example im worked with Laravel Inertia Vue Mix and every thing seems to be ok but as i configure for Vite its build static site and require node js to work as server?

Yeah, when using mix you still need node js.
It works the same way

segungreat 2022-07-12 18:49:04
Darjus Z 2022-07-12 18:43:39
but can it work as mix or not? for example im worked with Laravel Inertia Vue Mix and every thing seems to be ok but as i configure for Vite its build static site and require node js to work as server?

Will advice to use it in a new project because converting mix to Vite is not easy and straight forward

Darjus Z 2022-07-12 18:49:47
with mix no problem have SPA on Shared Hosting but with Vite i cant understand where i do wrong
Darjus Z 2022-07-12 18:49:57
and without node js
segungreat 2022-07-12 18:50:28
Did you build and upload
Darjus Z 2022-07-12 18:50:51
yep and its not working
segungreat 2022-07-12 18:51:51
Oops I haven’t upload a Vite app
segungreat 2022-07-12 18:52:08
Darjus Z 2022-07-12 18:50:51
yep and its not working

Are you using shared hosting

Darjus Z 2022-07-12 18:52:26
segungreat 2022-07-12 18:52:08
Are you using shared hosting

yes Shared Hosting

Darjus Z 2022-07-12 18:52:55
can you explan little bit if you know i need public_html on Shared hosting i made like this 1 sec sending photo
Darjus Z 2022-07-12 18:53:11
laravel_discuss-128846.jpg

Darjus Z 2022-07-12 18:53:28
on mix working but Vite not
Darjus Z 2022-07-12 18:54:30
laravel_discuss-128848.jpg

Darjus Z 2022-07-12 18:57:59
when i leave public and build to public_html no errors and localy working but on Host not working
Roba Nath Basnet 2022-07-12 19:17:16
How do we find the root of a given number using Newton Raphson method in PHP?
2022-07-12 19:21:45
Mohammed Iliyas 2022-07-12 12:55:09
Ajax not working files uploading pls help me

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
DesolatorMagno 2022-07-12 19:22:39
As you do with any problem, first try to solve manually and them you make it automatically.
Guudu 😊 2022-07-12 20:07:05
Anyone help me ajax
Guudu 😊 2022-07-12 20:07:16
Not get data in model
Mfanton 2022-07-12 20:27:43
Any help on this

https://stackoverflow.com/questions/72942711/how-to-order-by-child-parent-column-with-eloquent?noredirect=1#comment128838051_72942711

How to order by child / parent column with Eloquent?Stack Overflow
I have a table called terms which contains the following fields:
id | name | slug | taxonomy | parent_id

This is the current datasource:
id | name | slug | taxonomy | parent_id
1 Pop pop

rlawjddn00 2022-07-12 21:44:53
When an error occurs in the payment gateway, It throw RootPaymentGatewayException and then I log error message and roll back the DB. How can I roll back only when a specific message occurs in that Exception?
rlawjddn00 2022-07-12 21:45:57
rlawjddn00 2022-07-12 21:44:53
When an error occurs in the payment gateway, It throw RootPaymentGatewayException and then I log error message and roll back the DB. How can I roll back only when a specific message occurs in that Exception?

I don’t want to rollback in cases like curl request response timeout error.

anujrock1 2022-07-12 21:57:42
rlawjddn00 2022-07-12 21:44:53
When an error occurs in the payment gateway, It throw RootPaymentGatewayException and then I log error message and roll back the DB. How can I roll back only when a specific message occurs in that Exception?

You can do it by help of try and catch

You can catch multiple exception in catch method

anujrock1 2022-07-12 21:57:53
Check instance of that of not
Doniyorbek8069 2022-07-12 21:59:21
laravel_discuss-128874.jpg
Image is not uploading
Doniyorbek8069 2022-07-12 21:59:37
I don’t know why it is
Doniyorbek8069 2022-07-12 21:59:53
It is working on offline
Ohannesburg 2022-07-12 22:24:27
Doniyorbek8069 2022-07-12 21:59:53
It is working on offline

Try accesing that asset by url

Doniyorbek8069 2022-07-12 22:27:48
Ohannesburg 2022-07-12 22:24:27
Try accesing that asset by url

How?

Ohannesburg 2022-07-12 22:28:19
Bro easily Google’able
Doniyorbek8069 2022-07-12 22:28:29
Ohannesburg 2022-07-12 22:28:19
Bro easily Google’able

Ok😁

Ohannesburg 2022-07-12 22:28:31
Δ° just pointed a way to try
Adetollar 2022-07-12 23:47:56
rlawjddn00 2022-07-12 21:44:53
When an error occurs in the payment gateway, It throw RootPaymentGatewayException and then I log error message and roll back the DB. How can I roll back only when a specific message occurs in that Exception?

DB:: beginTransaction()

try{} catch (exception $e){ DB:: rollback () }

Adetollar 2022-07-12 23:48:08
Rollback if it fails
Adetollar 2022-07-12 23:48:22
Sorry for the disjointed code I am using a phone
Godwin Akpah 2022-07-13 01:29:33
I have got some stuff for sale
Arman K. @AccountantArman ($20 USD / hour) 2022-07-13 03:06:57
Are you a job recruiter, and you have a project, and need a freelancer to help you to complete it for you?
Are you a freelancer looking for a place to work and earn?
πŸ‘‰ HERE is a platform that helps you to achieve that

FreelancerTelegram
Work At Home And Earn
Intermidiattely 2022-07-13 03:09:09
someone can teach me how to do web crawl to Telegram ??
|