birdietorerik birdietorerik
6
Hi! Very new to laravel + vue. Like to create a vue component that show users that are onlie or offline. Is there a tutorial or somthing that help me on the way ?...
Audriehurst2 Audriehurst2
2
Downloading an APK document on the web or accepting it from different people are getting an installer record of an application on an Android gadget....
tomasnorre tomasnorre
12
Hi, I'm quite new to Laravel, but not to PHP. I have started to look into Laravel due to its popularity, and wanted to see/learn what it's all about. A thing that stroke me is the domain models and the creation part. I'm used to from PHP that I have...
Cvetan Cvetan
3
The phpcs currently reports error for blade files with no php code. In the configured extensions is this currently: php,js,css,inc. Can I somehow say it: "Watch PHP files but not blade"? I know I can acomplish this with custom scope, but I...
loose1eaf loose1eaf
1
I am using Laravel for API development. I have been using different packages to ease the development as well as saving more time and effort and focus more on the business code. Such packages include: barryvdh/laravel-debugbar intervention/image spat...
Khin Zin Zin Thinn Khin Zin Zin Thinn
8
I am trying to upload multiple images. But ended up with this error. Please suggest me what to do next. This is the Code from Controller <?php namespace App\Http\Controllers; use App\Models\Multimg; use Illuminate\Http\Request; use Image; class...
mbo mbo
1
Good day, i'm trying to setup an xml file. I got it working but not totally. $xml = new \XMLWriter(); $xml->openMemory(); $xml->setIndent(true); $xml->startDocument('1.0','UTF-8'); foreach ($dps as $key =>...
Blindacme Blindacme
4
I have no idea where to begin with this or what to search for but what I'm looking to do is provide our users a way to email into one of our controllers/models. You know how some CRM's have the ability to BCC a unique email address and when that happ...
sr57 replied
Solved
krepanakrava krepanakrava
0
When trying to create a new Laravel project on Windows 10 in WSL 2 Ubuntu using Docker (following Laravel Getting started -> Installation tutorial), I've been getting this error: "docker: invalid reference format: repository name must be lowe...
swagger swagger
5
I want to add a layer of caching for some heavy queries. I tried to use some of the available libraries (https://github.com/renoki-co/laravel-eloquent-query-cache) but have problems with the installation since I also use https://github.com/jenssegers...
vandhatch vandhatch
6
I was looking through the Laravel docs and was wonder when someone would reach for the with() helper in a real world example. Examples or articles welcome. Below is the example from the docs. $callback = function ($value) { return (is_numeric($va...
orest orest
3
I have the models User, ProfilePost and Comment A user has many profilePosts A profile post has many comments class ProfilePost extends Model { public function comments() { return $this->morphMany(Reply::class, 'repliable');...
JoaoGracio89 JoaoGracio89
1
So a im building dinamic forms from JSON. The SuperAdmin constructs a form it is stored as JSON then i want to render it in blade as HTML. It seems simple so far. But when i start using variables from database as {{ Auth()->user()->name }}. Or...
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...
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
Create a New Discussion Button