MarlonV MarlonV
6
Hello guys, Is there a way to do this ( the min and max year based on current year) in the laravel blade? I find some way to do this in the validation, but i want in the frontend. Thanks in advance. <?php echo $this->Form->input('birth_dt',...
PhoeniX5 PhoeniX5
7
When loging in to laravel app I keep getting this error : "SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' (SQL: select * from `users` where `username` = Admin limit 1)" I am no trying to login with root but it keeps showi...
paravecdesign paravecdesign
6
The best way to pass query from the model to Controller...
georgefromohio georgefromohio
7
Has anyone got enough time with Laravel 8.4.*? Particularly the cursorPaginate method? I'm pulling my hair out and any help would be appreciated. I've got two scenarios: People::cursorPaginate($request->query('limit')) This works great with the l...
redroseamit redroseamit
0
i am going to assign task to particular user so user name should be appear in dropdown and user_id saved in database. view part <div class="col-md-6"> <div class="form-group ">...
murilo murilo
0
Hello , I have a project on the web , and I have many customers that login with a Laravel Passport Authentication . I have been having problem with login attempt, some customers complain that cant access . after they make me a complain I go and make...
traceyjas traceyjas
1
I need to create an application. I need an admin portion as well an api that would be used by customers. I plan to use fortify and sanctum for authentication. I am unclear as how to get fortify to work with both web and api authentication. Any sugges...
murilo murilo
2
Hello Guys , I am working in a project that I have to make many scrap from other web sites . I can Scrap those websites in 2 ways - 1 ) SCRAP FROM HTML CODE - Most common - Scrap websites that are static . 2 ) SCRAP THE JSON REQUEST - Scrap from w...
Snapey replied
Solved
asadali007 asadali007
8
hello Everyone, when i run this queries they show 5 record per page but when i see queries in laravel debugger they show limit(6) why $flight = Flight::orderBy('id')->simplepaginate(5); select * from `flights` order by `id` asc limit 6 of...
BobZamin BobZamin
6
Hi. I'm trying to add an extra field to the sessions table so that along with the existing fields like user_id, user_agent, ip_address etc., the extra office_id column gets records stored in it on login. I have: Changed the session driver both in con...
salmazz45 salmazz45
1
i am building my portfolio i want to create multi auth with jetstream laravel 8 how can i create it ?? i need steps and structure from scratch i am get lost i am building some websites from scratch but i get confused because i want to to make it with...
RFFRED RFFRED
1
hi, I am a bit struggling with this relation. not sure why.... Admin model. An admin has an employer public function employer() { return $this->belongsTo(Employer::class); } employer model. An employer has many admins public funct...
hadis hadis
2
Hi I had a laravel project before it's on localhost now I want to open it but css an js files not open and this is the error: GET http://localhost:1234/ui/css/bundle.css net::ERR_ABORTED 404 (Not Found) localhost/:9 GET http://localhost:1234/ui/css/b...
hadis replied
Solved
wontonesaju wontonesaju
0
I am having a table in my database which having one json column. I want to take its value and index to join it for datatable rendering. But including the normal column also for instance form id, formname, content(this is a JSON field). My controller...
Reza89 Reza89
1
I have a problem! When I uncomment App\Providers\BroadcastServiceProvider::class in config/app.php, get the blow error in the terminal by typing php artisan. I've also tried composer update which didn't work. I'm using PHP 8.0.3 and Composer version...
joneyspark joneyspark
4
Data { "id": 2, "branch_id": 1, "counselor_id": 3, "universities": [ { "id": 1, "lead_id": 2, "institute": 1, "course": { &qu...
www888 www888
2
Hello using search method get, do i need use @csrf ? <form method="GET" action="{{route('search')}}" > @csrf <input class="form-control form-control-navbar" type="search" n...
Spiral Spiral
8
I want to get logged In a user in the API controller. But getting Null I have a route in API of the controller in which i want to show I'm not using JWT, Passport library for that Simple controllers in API and using in the Vuejs...
kuns25 kuns25
5
Hi, my default laravel application timezone is America/Los_Angeles (pst) , I'm storing all the timestamps like created at with this timezone. In the user profile, we are providing options to select a timezone. while showing the list of data for exa...
Joshuyo Joshuyo
2
We are using laravel HTTP client to make http requests to communicate with external APIs. Due to IP based rate limitations in some of the external end points, we decided to use different IPs for different requests. Guzzle provides a nice feature (CUR...
johnvoncolln johnvoncolln
1
I'm working on connecting an app I'm building to Etsy's API using a custom socialite provider. On the callback, I'm getting invalidStateException and I've figured out why, but not sure how to fix it. Dumping the request on the callback shows me that...
msaad msaad
3
Hello Friends, How Are You? I want to ask I can we write a mobile app backend in laravel 8? If yes :) can you provide me best source? If not :( then plz suggest the easiest and fastest way to write backend and best language also to write backend. (I...
mehrdad70 mehrdad70
7
Hi, the photo is saved in my media table like this {"original":"Screenshot (2032).png","300":"Screenshot (2032).png","600":"Screenshot (2032).png","900":"Screenshot (2032).png...
mehrdad70 mehrdad70
11
how i can fix this error Image source not readable filesystem.php 'myDriver' => [ 'driver' => 'local', 'root' => public_path(), 'visibility' => 'public', ], static $sizes = [300 ,...
Chris1989 Chris1989
2
Is there any simple code to change the 'locale' => 'en', The only that i found is that Request::server('HTTP_ACCEPT_LANGUAGE'); but doesnt work on a bracket, also must do explode to take only the en...
Tripik Tripik
3
Hi everyone :) Completly new to laravel (learning), I've created a project on localhost (W10 with Laragon, PHP 7(point)3(point)27, Laravel 8, Jetstream), the whole thing works as intended :) :) Then I've cleared all caches and uploaded the project to...
Deekshith Deekshith
0
Hi , I have form like below, @forelse($journalquestions as $que) <div class="form-group row"> <label for="question_{{ $que->id }}" class="col-md-8 col-form-label text-md-right">{{ $que->srno}}. {{ $qu...
bobdebower bobdebower
1
I saw this code on https://stackoverflow.com/questions/36914573/how-to-create-new-empty-database-with-laravel-over-model i'am trying to test it, but it's not working? public function index() { $userName = 'bigboytr'; // Your Database name to be...
Reaper Reaper
2
I am working on a Laravel project with the Tailwindcss framework. Now I want to use a Laravel admin panel for this project. So do I need to find an admin panel that supports Tailwindcss or Can I use any Laravel admin panel for this project...
Wakanda Wakanda
9
Hi Devs, how can i get the count of reviews when am using the seRelations method, the below withCount is currently not working $product->setRelations([ 'reviews' => $product->reviews()->paginate(3), 'photos...
MichaelVanEs MichaelVanEs
1
What might be the best way for determining the first invalid input field in a flash error list in order to set the autofocus on that input field. By default, Laravel Breeze places the autofocus on the first field of the registration form, but I woul...
Deekshith Deekshith
1
Hello, I have a admin dashboard and there are three roles, user admin manager User will have access to his dashboard and admin will have complete access to admin dashboard to mange the website. i have a tables like below, roles id, name role_permis...
MichaelVanEs MichaelVanEs
3
Laravel Breeze has the registration form setup so that all flash error messages are listed above the form. I don’t like this format, and I’d prefer to have each specific error message appear below the offending input field. Since this type of err...
ErikRobles ErikRobles
1
I am using Laravel 8. I am creating a CRM. I have the welcom page with a link to the (index) dashboard. Once in the dashboard, I have a link to create a prospect. When I hover over the link, I can see that the route is correct, ie, mysite.test/prospe...
ethar ethar
2
hi i use this code to insert data to db, insert work successfully, but return not worked DB::transaction(function () use ($request) { $user = new User(); $user->name = $request->name; $user->phone = $reque...
Snapey replied
Solved
Create a New Discussion Button