Hello everyone, i can create an admin panel with laravel and the API is created by nodejs , right?
Can it be better with laravel or core php?
What if i want to limit on eager loads?
So how can i tell eloquent to take maximum 10 first posts from user?
How to check in Laravel Passport that the user has logged in?
what do you mean?
How to save it?
But it’s not professional JK 😅
What if i want to limit on eager loads?
Consider I’ve 10 users and each user has 10,000 posts.
So how can i tell eloquent to take maximum 10 first posts from user?

This is my code. But it returns all post from users.


check this https://laravel.com/docs/5.8/routing#route-parameters
Your route should include the variable name /to/path/{email}, then the controller signature should has $email
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Your route should include the variable name /to/path/{email}, then the controller signature should has $email
i want to pass data from blade to controler without form and without adding mailid to url
Your route should include the variable name /to/path/{email}, then the controller signature should has $email
if i wanted to pass array than
Well you can do it in the relation method like
$this-hasmany(post)-*limit(10)*-orderby….
Also you can send a callback function in second parameter of with and return conditions you want also limitations orderby etc
Use axios or fetch or jQuery ajax from js libs

it’s not a simple question and answer
follow this links:
https://stackoverflow.com/questions/33939393/failed-to-authenticate-on-smtp-server-error-using-gmail
https://laracasts.com/discuss/channels/laravel/failed-to-authenticate-on-smtp-server-with-username-my-at-emailcom-using-2-possible-authenticators
I’m trying to set up email for my first laravel project, and was thrilled that there’s a laracast for it: https://laracasts.com/lessons/mailers
I’ve followed the simple steps, chose gmail in mail…
This application developed using php laravel framework. its useful for online shopping where user can have custom color,text,image on their t-shirt.
Email: bharatjogi.07@gmail.com
How to check in Laravel Passport that the user has logged in?
{
if ($request->hasFile(‘logo’)) {
$logo = $request->file(‘logo’);
$logoFile = $logo->getClientOriginalName();
$logo->move(public_path(‘images/logos’), $logoFile);
}
if ($request->hasFile(‘image’)) {
$image = $request->file(‘image’);
$imageFile = $image->getClientOriginalName();
$image->move(public_path(‘images/images’), $imageFile);
}
Style::create([
‘lang’ => app()->getLocale(),
‘first_name’ => $request->first_name,
‘last_name’ => $request->last_name,
‘mobile’ => $request->mobile,
‘birth_date’ => $request->birth_date,
‘field_sport’ => $request->field_sport,
‘coach_degree’ => $request->coach_degree,
‘referee_degree’ => $request->referee_degree,
‘don’ => $request->don,
‘gender’ => $request->gender,
‘marital_status’ => $request->marital_status,
‘championship_titles’ => $request->championship_titles,
‘national_code’ => $request->national_code,
‘job’ => $request->job,
‘style_name’ => $request->style_name,
’email’ => $request->email,
‘founder’ => $request->founder,
‘website’ => $request->website,
‘image’ => isset($imageFile) ? $imageFile : NULL,
‘logo’ => isset($logoFile) ? $logoFile : NULL,
]);
return redirect()->back();
}

No it is not an array
app.php
‘locales’ => [‘fa’, ‘en’],
‘locales’ => [‘fa’ => ‘Farsi’, ‘en’ => ‘English’],
‘locals’ => [‘fa’, ‘en’],
