www888 www888
2
public function getPost($id) { $a = Page::latest()->get(); $b = Post::latest()->get(); return response()->json([$a, $b]); } In ajax how can get this json values. when using one parameters (json($a);)for us...
jimb814 jimb814
3
Problem: how to get results from a query and then search only those results I have a treatments table but want to display only the treatments assigned to a particular dentist. I am using mount() to bring in the logged in dentist's user ID like this:...
Vadim churbanov Vadim churbanov
3
I have a database file that stores the quantity of goods in stock in dbf format external dbf file on the ftp I do not understand how to organize the following points correctly (where to place the executable code) So far, I see the process like this:...
cservices cservices
1
I have this in my controller $data['project'] = Project::where('id', $project_id) ->with('rows.digitalType') ->first(); When I do a dd() like this dd($data['project']->rows); I can see the rows relationship and the '...
Gabotronix Gabotronix
1
Hi everybody, I have a multi-step form and in the top header I want to show some kind if breadcumbs, I'm trying to make it so between each breadcumb there's a line but currently I can only show a line for the last case in my condition (in this case,...
Adamantyn Adamantyn
7
I have an applicatoion made with Laravel, everythings works well but when I run it on a server with SSL, i'm redirected to the route https://example.com/email/verify when i try to access https://example.com. Without SSL it works as usual. When I targ...
Does anyone know of any Laravel Package that will take measurements inside an image? If someone were to stand next to an image with a meter stick painted a fluorescent green. I'd like to be able to write code to detect the meter stick and then have e...
After creation we can test a project by launching the server with the command : php artisan serve phpinfo() shows (on my linux host) the file : /etc/php/7.4/cli/php.ini But, if I'am right, phpini.is in fact a copy pf this file, copy that is created d...
tayabsoomro tayabsoomro
1
When I am sending email with Laravel using Mail::send() function, the body of the email that I receive is empty when running it on production, but when I run it on localhost, it seems to work fine. I've tried both the emails with and without queue, a...
claytoningmire claytoningmire
0
Is it possible to use a Sequence in a Factory definition()? I have tried all of the following to get a result but to no avail. 'published' => $this->sequence([now(), null]) 'published' => $this->sequence(now(), null) 'published' => $...
midwestdev midwestdev
0
DB::table('notifications_set') ->select('business_id', 'fiberhood_id', 'id', 'fcm_id', DB::raw('count(fcm_id) as total')) ->where([['notification_id', '=', $results[0]->notification_id], ['notifications_set.business_id', '=', $user_bid]]) -&...
anilkumarthakur60 anilkumarthakur60
1
1st in .env file i keept FILESYSTEM_DRIVER=public then i linked two directory with php artisan storage:link while viewing the page source code image path is showing but image is not showing while browsing here is my blade file @if ($brands->...
Hi, I have classic carousel with arrow left and arrow right for scroll the images. I need to disable the mobile event swipe left and right (with finger) for my carousel; is that possibile with javascript (not css i supposed)? I need to scroll the ima...
finchy70 finchy70
7
In development I have a Laravel 8.24 / PHP 8.0.1 app that works fine and when I composer update it updates fine. When I deploy to forge from the github repo the deployment fails and errors that seem to relate to composer are in the log. Thu Jan 21 23...
johnef_sh johnef_sh
3
I am trying to implements product recently viewed into my application. I need to add the customers viewed products into cookies, which I will push them latter to my database. in my ProductController show function I did this. $item_array[] = [...
app_dev app_dev
1
Producing secure software ? Laravel experts ensure their security while developing the framework. But we are the ones using the framework. Our projects with him; we plan and code the model, view and controller. At this stage, the job can get a little...
warpig warpig
5
Just completed watching the MySQL Database Design course and I thought it would be very neat to have the option to separate those videos, whose topics were difficult (for me) to understand the first time. So instead of spending too much time on just...
thebigk thebigk
1
I've NGINX 1.18.0 running on uBuntu 20.10. I wish to configure it to allow unlimited subdomains for my multi-tenant application. I use the following configuration file for most of my single-tenant applications; and it works fine: server { lis...
noblemfd noblemfd
5
I am trying to develop a multi-tenancy application without using Package in Laravel-5.8. I have gone through the multi-tenancy videos in Laracast, but some things were not treated. I am using traits and scopes Models class Company extends Model {...
davidsi02 davidsi02
7
Hey, I'm having the error compact(): Undefined variable: answers when runnig the code below and I don't understand why, someone can help me? Code: public function getQuestions($id){ $questions = \DB::table('questions')->where('testid...
brahim80 brahim80
4
Hello Guys, Could you help me with fetching and selecting a value in the edit page at edit.blade.php and Controller? The objective is to retrieve a value and auto-select from the list @if ($agreer->count()) @foreach($agreer as $agree)...
johnw65 johnw65
1
Somewhat new to Laravel, but what is the best method of creating a message to let the user know that Session has timed out. And when they click on OK, to automatically send the user to the login screen for the entire website. Currently, even when th...
MalBe MalBe
1
I have a field in my user database table called user_type, when logged in how would I display content on the dashboard page depending on user_type? I've been going around in circles for the last 2 hours trying to figure it out if user_type = member s...
I have implemented a theme switch (dark mode/light mode). But when i go from one page to the other it always flickers a bit before the right theme is shown. Anyone a suggestion on how to prevent it from flickering? I'm using this javascript and added...
Randy_Johnson Randy_Johnson
1
I follow everything here https://jetstream.laravel.com/2.x/installation.html going down the livewire route, but still! Class 'Inertia\Inertia' not found Does anyone know how I can fix this....
Robert_Wlliams Robert_Wlliams
2
I have hosted my project. It is working on root url like carauction.sellcarsuae.com but when i want access any other route its giving me 505 error...
app_dev app_dev
1
npm run watch Result; > @ watch /home/retaria.com/blog > mix watch Invalid regular expression: /(\p{Uppercase_Letter}+|\p{Lowercase_Letter}|\d)(\p{Uppercase_Letter}+)/: Invalid escape npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ watch...
localpathcomp localpathcomp
0
the gmail smtp-relay works fine using the sync driver, but if we queue the email we this error. cleared config, cache, & restarted queue workers. tested in prod and dev, same results [2021-01-24 20:04:22] production.ERROR: Expected response code...
movepixels movepixels
6
Not sure why this is not working. I need to add an id to existing pivot table. So there is currently no "id" column so I add that to the db. I added "id" to the relations ->withPivot('id', 'question') Now this set all id's to t...
gianmarx gianmarx
0
I wrote the following service: namespace App\Services; use App\Services\Api\TrelloCardAPIService; class TrelloCardService { protected $trelloCardApiService; public function __construct(TrelloCardAPIService $trelloCardApiService) {...
juliobitencourt juliobitencourt
3
I'm getting this binding resolution error after inviting a new member to a team in Jetstream 2 Illuminate\Contracts\Container\BindingResolutionException Target [Laravel\Jetstream\Contracts\InvitesTeamMembers] is not instantiable. I've followed the J...
ankush981 ankush981
0
Hi Laracast users, I have made a project with some portion in laravel, lumen and core php. Now i need to veryfy active user via Passport or sanctum token. How can i used same api token for both project laravel and core php for authenticataion....
Smashing Smashing
1
Hi fam, Can someone help me figure out how can I get rid of the Laravel name when sending an email?. Probably is there a way but I'm not entirely sure how can it be done. Example: from: Laravel [email protected] by: [email protected]...
Kikismedia Kikismedia
14
i created a component post ,which automatically created app/view/components/Post and also resources/view/components/post.blade.php so I'm trying to make the post blade anonymous and I deleted the Post.php in the app components now I'm having error ta...
Create a New Discussion Button