Guys, is it Ok to share a Laravel tutorial video here on the channel?

|
2020-04-14 16:33:03
I’m using laravel scout algolia, an pagination, but pagination nexxt page is not working
2020-04-14 16:33:07
how to fix it?
2020-04-14 16:34:55
if I click on the second pagination page, it is redirecting to home page
2020-04-14 16:41:58
help me pz
2020-04-14 16:41:59
plz
Priyanka Pradeep 2020-04-14 17:10:03
Need to do MySQL backup on weekly basic in docker . help me
2020-04-14 17:17:43
Ada yg tau gimana merge 2 file css
Siberfx 2020-04-14 18:48:17
Yannickshadownet 2020-04-14 16:09:08
public function sendEmail (Request $request) {
// is method a POST ?
if(Request::isMethod(‘post’)) {
require ‘../vendor/autoload.php’; // load Composer’s autoloader
$mail = new PHPMailer(true); // Passing true enables exceptions
try {
$mail->SMTPDebug = 0; // Enable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = ‘smtp.gmail.com’; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = ‘monmail@gmail.com’; // SMTP username
$mail->Password = ‘monpassword’; // SMTP password
$mail->SMTPSecure =env(‘MAIL_ENCRYPTION’); // Enable TLS encryption, ssl also accepted
$mail->Port = 587; // TCP port to connect to

//Recipients
$mail->setFrom(‘from@example.com’, ‘Mailer’);
$mail->addAddress(‘joe@example.net’, ‘Joe User’); // Add a recipient
$mail->addAddress(‘ellen@example.com’); // Name is optional
$mail->addReplyTo(‘info@example.com’, ‘Information’);
$mail->addCC(‘cc@example.com’);
$mail->addBCC(‘bcc@example.com’);
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = Request::input(‘subject’);
$mail->Body = Request::input(‘message’); // message
$mail->send();
return back()->with(‘success’,’Message has been sent!’);
} catch (Exception $e) {
/* return back()->with(‘error’,’Message could not be sent.’); */
dd($e);
}
}

}

are you trying to implement phpmailer to laravel? or simly using in with only php ? what is your problem

Yannickshadownet 2020-04-14 18:57:22
Siberfx 2020-04-14 18:48:17
are you trying to implement phpmailer to laravel? or simly using in with only php ? what is your problem

I want to implement it to send mail in my laravel project byt i get smtp error :could not authenticate

Siberfx 2020-04-14 18:58:07
try to use his own mailer instead
Yannickshadownet 2020-04-14 19:01:54
Not understanding ….🤔
Yannickshadownet 2020-04-14 19:02:10
Laravel mail?
Siberfx 2020-04-14 19:16:52
yes.
Ujjaval Vaishnav 2020-04-14 20:03:59
How to allow cors request
ExpertXL 2020-04-14 20:12:30
https://irisinformatics.in/

Home – IrisinformaticsIrisinformatics
Just another WordPress site
FrankMueke 2020-04-14 20:26:34
FrankMueke 2020-04-14 16:05:31
Tailwindcss installation: Whenever i run “npm run watch” , the main.css file remains empty. Help me please

Guys 😔😔

2020-04-15 00:37:38
Hello guys, is it Ok to share a Laravel tutorial video here on the channel ?
2020-04-15 00:37:52
Is it allowed ?
حمیدرضا غفوری 2020-04-15 00:43:41
can you send that to me?
2020-04-15 00:48:58
Sure I sent it 👍
حمیدرضا غفوری 2020-04-15 00:51:14
Thanks for that
lehadnk 2020-04-15 00:57:09
I’ve noticed some weird behaviour when I’m trying to resolve LoggerInterface instance using dependency injection:
class ScrapperService
{
public function __construct(
ProductOfferProductFactory $productOfferProductFactory,
CurrencyService $currencyService,
LoggerInterface $logger
)
{
$this->productOfferProductFactory = $productOfferProductFactory;
$this->currencyService = $currencyService;
$this->logger = $logger;
$this->logger->debug(‘Scrapper service was initialized’);
}
}

$this->app->when(ScrapperService::class)
->needs(LoggerInterface::class)
->give(function() {
return Log::channel(‘product_scrapper’);
});
However, when I’m trying to ask IoC container for the instance of ScrapperService, it fails:
PHP Fatal error: Uncaught Error: Maximum function nesting level of ‘256’ reached, aborting! in /app/current/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:189
Stack trace:
#0 /app/current/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(189): is_object()
What exactly I’m doing wrong, and can I configurate the class logger to put messages in the specific channel?

Gio1614 2020-04-15 04:21:24
Hola alguien de colombia ??
Jhonjaner11 2020-04-15 05:30:41
Si, colombia
rijisoft 2020-04-15 09:15:56
Useful
rijisoft 2020-04-15 09:15:57
laravel_discuss-33156.jpg

rijisoft 2020-04-15 09:15:57
laravel_discuss-33155.jpg
#Laravel tip of the day:

if you are building Eloquent query, depending on some search parameters which may exist or not, you can use $query->when() method and chain it into one sentence. Look at code snippets, which way do you prefer? IF or WHEN?

Gowtham_Boopathiraj 2020-04-15 09:24:21
Hi frds
I using ajax call in get latitude and longitude in
Https://geolocation. Db. Com/jsonp

Get latitude and longitude sent other function in get zone name in https://api.timezonedb.com/v2.1/get-time-zone?key&format=json&by=position&lat&lng
This api.

This api set in hidden field in menu page and the login time i set session.

I get session and save table in
$time = carbon::parse($time_zone)->toDateTimeString();

The $time_zone is timezone name.

Dynamic get time zone. Test user login the system its working. The time another test user login time show some error in undefined time zone variable.

How to fix the issue please help me

sadeqi125 2020-04-15 10:08:21
hi groupby not workin in laravel controller
sadeqi125 2020-04-15 10:16:23
solve
sadeqi125 2020-04-15 10:16:58
in database.php filr set ‘strict’ => false,
sadeqi125 2020-04-15 10:36:49
how to dynamic menu , submenu and subsummenue in laravel
Gio1614 2020-04-15 10:42:54
Id : 1, Padre = 0. Row. Id :2, hijo = 1
2020-04-15 12:08:53
Hi how can i show categories in the post index !?
rmkmasterdev 2020-04-15 12:11:32
what ever you want to show you have to send from controller to your view
2020-04-15 12:55:26
what causes error 404 in
laravel?
2020-04-15 12:55:57
I mean 404 not found.
akhil341 2020-04-15 13:49:58
Is safe to store JWT token on Local Storage for Keep Vue Login State ?? Need advise from the experts ??
eyyubzademireli 2020-04-15 14:02:38
akhil341 2020-04-15 13:49:58
Is safe to store JWT token on Local Storage for Keep Vue Login State ?? Need advise from the experts ??

Store jwt in cookie

humaneguy 2020-04-15 14:54:55
2020-04-15 12:55:57
I mean 404 not found.

404 is simply an HTTP status code that tells you that a resource was not found

humaneguy 2020-04-15 14:55:11
humaneguy 2020-04-15 14:54:55
404 is simply an HTTP status code that tells you that a resource was not found

It might be a Route

humaneguy 2020-04-15 14:56:18
2020-04-15 12:55:57
I mean 404 not found.

You might have to specify the Route in your routes/web.php file

humaneguy 2020-04-15 14:58:55
lehadnk 2020-04-15 00:57:09
I’ve noticed some weird behaviour when I’m trying to resolve LoggerInterface instance using dependency injection:
class ScrapperService
{
public function __construct(
ProductOfferProductFactory $productOfferProductFactory,
CurrencyService $currencyService,
LoggerInterface $logger
)
{
$this->productOfferProductFactory = $productOfferProductFactory;
$this->currencyService = $currencyService;
$this->logger = $logger;
$this->logger->debug(‘Scrapper service was initialized’);
}
}

$this->app->when(ScrapperService::class)
->needs(LoggerInterface::class)
->give(function() {
return Log::channel(‘product_scrapper’);
});
However, when I’m trying to ask IoC container for the instance of ScrapperService, it fails:
PHP Fatal error: Uncaught Error: Maximum function nesting level of ‘256’ reached, aborting! in /app/current/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:189
Stack trace:
#0 /app/current/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(189): is_object()
What exactly I’m doing wrong, and can I configurate the class logger to put messages in the specific channel?

Use Pastebin for your code, bro.

akhil341 2020-04-15 15:01:35
eyyubzademireli 2020-04-15 14:02:38
Store jwt in cookie

Thank You 🙏

Manoj Mehta 2020-04-15 15:12:44
I have 3 table service, package, and booking.

The booking table has a relation with package table and package table has relation with service table.

Manoj Mehta 2020-04-15 15:14:07
here i am getting package data using this
Manoj Mehta 2020-04-15 15:14:08
Booking::where(‘userId’,$request->userId)->with(‘User’)->with(‘package’)->OrderBy(‘created_at’,’DESC’)->get()
Manoj Mehta 2020-04-15 15:14:47
and now i want service table row data using relation
Manoj Mehta 2020-04-15 15:15:13
package table has service id
ChantyTUN 2020-04-15 15:55:28
laravel_discuss-33190.jpg
Hello all, Who has that project pos inventory? i want to buy…it
|