boyjarv boyjarv
1
Both my Service file and my component return the same array of 12 items, great but surely, I should just be using one or the other?! here is my Service file: getAllFinds(): Observable<any> { const currentUser = localStorage.getItem('current...
boyjarv replied
Solved
Romain Romain
11
Hey, say that I have this: $array = [ 'english' => [ 'USA', 'Canada', 'Australia' ], 'spanish': [ 'Spain', 'Venezuela' ] ]; How can I simply, using collect() or Arr::, get english from USA? Thanks...
uptiie uptiie
2
Context: I've been programming for about 3 years now but all my experience is broken up into many different platforms and languages from mobile swift, java, and Kotlin to now learning php/laravel, javascript, and frontend languages CSS, HTML. I've be...
ralphjohn292 ralphjohn292
4
What is the best way of creating authentication for admin? is that creating a pivot table (role_user) or just add another column (role) to the user's table? I'm a beginner on Laravel Programming your answer will help me a lot in my Laravel journey Th...
uniqueginun uniqueginun
4
Hello there I'm trying to come up with the best structure for database table which the business requires approval for each update/delete action. so when new data is entered by system user it doesn't show in the system unless approved by this user's m...
sbkl sbkl
3
Just to share if anyone looking for implementing this animation. A client requested an animation to display boxes on scroll. Just discovered AOS library and implemented a fadeIn fadOut animation in few minutes. Didn't go further but it looks great! g...
dougblitz210 dougblitz210
1
I am trying to get a dev environment setup using Laravel Sail on my m1 Mac, and my "sail up" command fails with: => ERROR [ 5/12] RUN pecl install swoole 1.1s [ 5/12] RUN pecl install swoole: #8 1.019 No rel...
ritey ritey
8
Does anyone have any tips or insights into how to send a notification (not mail) to a database of users with over a million records and counting. Laravel docs indicate using: Notification::send($users, new InvoicePaid($invoice)); This times out or r...
Emil_Aa Emil_Aa
4
Hi, im developing on an M1 MacBook Pro, and I just started learning Laravel. I couldn't get homestead to work when I tried on my own, and I couldn't find any posts about it either... So I thought I would create this thread, where we can share experie...
neomuckel neomuckel
8
hello and a happy new year. i got a new macbook with m1 cpu. can you tell me the best solution for work on it with laravel ?...
michabbb michabbb
2
hi everybody, i am pretty sure, this code can be optimized to avoid code duplication, so i would be happy to get some ideas from you! public function call(int $kunde, string $method,string $resource,int $resource_id=0, array $data=[]): Response {...
matteoformenti matteoformenti
0
Hi, I've just implemented push notifications in my website using Firebase Cloud Messages, since only registered users should receive personalized notifications, i've inserted a JS script only for authenticated users, that retrieves a fcm token and fo...
a0e a0e
2
So im sort of new to Laravel and I learnt that it is a best practice for a controller to only do what it is meant to do (for example a sign up to only sign up without validating anything), and all other pre-processing to be done else where (middlewar...
a0e replied
Solved
mbo mbo
3
I'm trying to do the following: I'm running a query and getting a collection. See below: \MacBook-Pro:ligplaats $ php artisan Update:AutoTextDps Illuminate\Database\Eloquent\Collection {#41546 #items: array:1 [ 5 => App\service {#16047...
mbo mbo
1
Goodday, I'm trying to do the following: Search locations within a range of a certain point based on latitude and longitude. I got this working going through the list of points and calculate the distance to the point. Then i filter them by distance t...
sr57 replied
Solved
Foks Foks
4
Hi! I'm about to deploy my laravel app, and I'm wondering what I should use, Laravel Forge or Laravel Envoyer. I would gladly take differences and similarities. Best Regards...
mbo mbo
2
good day, I'm trying to replace something directly in my mysql database (5.7.28) Using the following code: SELECT latitude FROM postcodes REPLACE (latitude,',','.') it gives a error. But i don't understand. ou have an error in your SQL syntax; Tha...
gitwithravish gitwithravish
3
A hotel has many rooms and a room has many rate plans. A rate plan is simply a variant of the room, for example, RoomOnly, RoomWithBreakfast, RoomPlusBreakfastPlusLunch etc. Usually each higher in price compared to the previous one. In each rate plan...
radu radu
0
Ok, so after few days of smashing my head over the keyboard, I finally figured out how to configure my development environment for working with Laravel Sanctum, Nuxt and Nuxt Auth on Homestead Windows10. I installed Laravel on Homestead, and I instal...
Abdk2r Abdk2r
1
I would like to have a temporary data on my runtime. Laravel::set('key', 'value') Retrieve it within the same runtime Laravel::get('key') Anything like this exist already in Laravel ?...
tykus replied
Solved
uniqueginun uniqueginun
6
Hello, I have a controller method that perform multiple tasks. everything is working fine but one of those tasks takes more time than the others and it slows down the response. so I'm thinking about changing the approach. the flow of tasks is this: 1...
Loots Loots
3
Hi, for a small portion of my webapp, I want to use NodeJs. But I'm wondering where to place the files. I'm guessing I should just put them in a new directory of resources? It's only a small script (that includes a small local server) that should run...
Loots replied
Solved
aniketmagadum aniketmagadum
2
I am confused between when should a column's value be timestamp and when should it be datetime type. Does anyone have some examples of real-world scenarios?...
erron erron
1
I use the destroy() method when deleting single and multiple records. I just want to know if I am using a good approach to handle these both actions in one method or should I create another method like destroyMany() to handle bulk delete? I am passin...
jacobson jacobson
1
Hi everyone. I have an API with a lot of different polls for the user to fill the profile. I was wandering how to save that the poll was skipped and how to distinguish the difference between skipped and empty poll answer. Currently I’m not 100% sur...
jacobson jacobson
2
Hi I have a project with a lot of tasks that are being added all day (different hours). I want to create a database table with “tasks” and a process that adds tasks to this table. Unfortunately it can’t be a simple “pop task” because each t...
Snapey replied
Solved
jeroenvanrensen jeroenvanrensen
8
Hi everyone, I wrote a simple deployment script, where the last steps are npm install, npm run production, and php artisan up. Of all the steps in the script, npm run production takes the longest. Is it possible to run php artisan up before building...
Snapey replied
Solved
madsem madsem
4
What is a good way/How do you handle it when your project is using a third-party package. But this package has a small issue that needs to be fixed. You created a PR, but what happens if it's not accepted, or just takes a while (days, weeks, months)....
Cronix Cronix
2
In case you didn't see, Taylor Otwell set up a discord server for Laravel. See his tweet: https://twitter.com/taylorotwell/status/1037140531313340416...
mbo mbo
2
Good day, I have a question about forum packages: any tips what is currently the best and of which you can expect it will be maintained in the future? Thanks for the tips! br maarten...
Domas Domas
5
Hello, We have an interesting billing model. It looks like a matrix. For example, for each additional PLAN, we provide a 5% discount. Now I am searching for a solution to achieve this pricing model in STRIPE with recurring payments. Maybe somebody di...
vinschi vinschi
10
Hi guys, do you have any suggestions to be on top in the google search in a laravel way? Thanks in advance...
Punksolid Punksolid
4
Hi everyone, I have a project that I'm doing for a friend, but later I asked him if I can use the project for reselling it and making it open source with the intention to have two projects that will be evolving differently, primarily the front-end-...
warpig warpig
4
So in this episode (https://laracasts.com/series/laravel-6-from-scratch/episodes/55) when Jeffrey starts the project he runs laravel new tweety --auth but that doesn't work today, since there are a handful of options now like JetStream, Fortify and B...
jred_lewis jred_lewis
1
For a personal Laravel project, I'm starting by making an admin panel before the end user view. For at least one model, I'm allowing soft deletes to be used. I have two opinion-based questions to that end: For routing should I reuse the included PU...
Create a New Discussion Button