MichielElswood MichielElswood
0
I'm having issues with updating my parent_id within a child. Note: this is my debug code. So yes, I know it's bad. foreach (Page::all() as $row) { $row->timestamps = false; // To disable update_at field updation foreach ($...
devonmather devonmather
4
Running Laravel: v7.7.1 In the app/Console/Kernel.php I have protected function schedule(Schedule $schedule) { $schedule->command(DailyCommand::class) ->dailyAt('01:00') ->emailOutputOnFailure('[email protected]'); } Then...
Hello everyone :-) I'd like to transform my "good old gates" to policies. But unfortunately I can not figure out how to create a "global" before filter. In my example, the user should not be allowed to do anything unless he got a...
777not888 777not888
2
Hello everyone, tell me who knows. There is a User resource and a separate Address resource, which is associated with the first one by address_id. How to display all Address fields in the Details field of the User resource, and not just the city, for...
I've been trying to solve this problem for a day now,but no luck. "Npm run watch" works,but when i try "npm run hot" then i get this error-> "Error: \js\app.js is neither a posix nor a windows path, and there is no 'dirnam...
Marcolino922 Marcolino922
0
Hi, following the Stripe schematic, I can't understand the syntax to create the data for the customer invoice. https://stripe.com/docs/api/metadata?lang=php $request->user()->newSubscription('default', $plan)->create([ $request->to...
amirkamizi amirkamizi
3
I am sending curl request to an api. for first 20 requests I get the correct xml/json response. but after that I receive HTML response. I logged the urls that caused that, the urls work fine on the browser. when I send the request again with curl it...
FrazeColder FrazeColder
1
Hello, at the moment I am coding a composer package which is providing me some basic function to write tests for Laravel Nova. However, I want to access some standard routes in my package like route('nova.index'). The problem is that I cannot simply...
Ifrit Ifrit
2
So I need to grab my product's name so I can save it with a bunch of other data, the problem I have is that I don't know how to add both the v-model and value. Here is my code <template> <div class="content-header">...
chaudigv chaudigv
3
Upon clicking the Verify Email Address, the link throws 403 Invalid Signature error. I understand this sort of question has been asked before on multiple occasions, yet none could solve the issue. Solutions I tried so far (on each step config and cac...
AwadGorg AwadGorg
0
Hello, I have this code // Adding items to the list $items = array(); foreach ($order->items as $item) { $orderItems[$item->id] = new Item(); $orderItems[$item->id]->setName($item->product->name) ->setCurrency(co...
Ajvanho Ajvanho
0
I made Nova Tool, but how to make package,, there is not docs how to do that....
movepixels movepixels
1
I am building an image uploader. Pretty straight forward. Odd thing that makes no sense is it only works maybe 10% of the time. I can upload an image, repeat the process and next time I get CORS error => Cross Origin Resource sharing error: Missin...
nolannordlund nolannordlund
1
I'm running into the deployment size limit with one of my Vapor projects. I've been deploying apps on Vapor for a while and this is the first time I've had this issue. My first thought was to try separate-vendor: true on my environment but the deploy...
DexterMorgan DexterMorgan
5
Hello ... i want remove Jetstream from my existed project and replace it with Laravel ui so i reomve Jetstream from composer by commend composer remove laravel/jetstream and Edit away app/Http/Kernel.php - \Laravel\Jetstream\Http\Middleware\Authenti...
davy_yg davy_yg
4
Hello, I would like to know how to alternate this two wishlist icons: icon1 (white heart) upon clicked it changes into icon2 (red heart) ?...
DDSameera DDSameera
1
How could i resolve this security header error ? Chart.min.js:7 Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' 'nonce-xbpNXdLJ1woVJHhbCRCmJJwcMCLro0Qu' cdnjs.cloudflare.com fo...
user86516512 user86516512
5
I'm using Laravel 5.3, and following this tutorial to get myself set up with Google Cloud: https://cloud.google.com/community/tutorials/run-laravel-on-appengine-standard I'm at the part where I'm trying to run my database migrations, so I do: export...
Falantar Falantar
2
I followed the setup process for Laravel Sanctum and when I run axios.get('/sanctum/csrf-cookie) I get a valid 204 response but no CSRF cookie in the response, only the session cookie. cURL Request: curl --location --request GET 'localhost:8000/sanct...
ethar ethar
1
i have field named arrive_location arrive location have just two value (exist, new) in eloquent $orders = Orders::select('id', 'users_id', 'arrive_location') ->with('users:id,fname,lname,telno') i want if arrive_location == n...
fbloggs fbloggs
4
I am getting this error: app.js?id=37395f80948d4d99f537:2 Uncaught ReferenceError: VUE_PROD_DEVTOOLS is not defined at Module.5166 (app.js?id=37395f80948d4d99f537:2) When I run a new Laravel 8 install with Jetstream, having run npm run prod. It works...
JCKN123 JCKN123
3
I tested on all browsers on my laptop, I get the value But I tested it on my iPhone, it works fine at chrome but no in safari. do I need to save it?...
DoeJohn DoeJohn
2
Hi, I am using @yajra /laravel-datatables and I would like to have DataTables Buttons for generating PDF, CSV, print and so on. Here is an example of how to do it: https://datatables.yajrabox.com/service But, in my case, I want to do it with tasks in...
elliotk elliotk
1
Hello, I am hoping to get some help writing a test. I have a Domain model which holds a list of valid domains for a site. I then have a middleware that checks whether the current $_SERVER['HTTP_HOST'] is in the Domain model and sets a session variabl...
amirkamizi amirkamizi
14
on a dedicated server with CentOs I keep getting this error. file_get_contents(phar://../storage/logs/laravel.log/test.txt): failed to open stream: phar error: invalid url or non-existent phar &quot;phar://../storage/logs/laravel.log/test.txt&...
ziggyspider ziggyspider
8
I have a One To Many relationship, with two models, I need a CRUD with an array to save "zones" to "labels", by example: Label: Columbia Records Zones: USA, UK, Germany so I used a One to Many relationship with an array for Zones....
JorgeAlberto JorgeAlberto
1
Hi, community. how can i setting a sql server schema ? I have in my .env DB_CONNECTION=sqlsrv DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD=root But I want to point to a development scheme. I read that I have to sp...
camlynfx camlynfx
4
In this example below protected $touches = ['post']; is very helpful to update the parent's (Post's updated_at field) timestamp when the comment is updated. class Comment extends Model { protected $touches = ['post']; public function po...
haritz haritz
1
Hello everyone, I am trying to connect to an SQL Server Database but I get an error. The error says that there was an error with the user 'haritz'. SQLSTATE[28000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Error de inicio de sesi\u00f3n...
laveca laveca
2
TL;DR: See Question at the bottom. I'm trying to figure out what's normal or reasonable in an enterprise-level back-end job where you have to ramp up to learning their products' architecture, without training on the products' usage or terminology, an...
noblemfd noblemfd
3
In my Laravel-5.8, I have this Query: $identities = DB::table('appraisal_identity')->select('id')->where('is_current', 1)->pluck('id'); $userCompany = Auth::user()->company_id; $my_query = DB::table('hr_employees AS e')...
xtremer360 xtremer360
1
I'm having an issue with getting sail to run a separate port from I guess apache which is installed on my mac. For some reason no matter what I do to change the port it still start ups on port 80. I have changed the value of APP_PORT in my .env file...
Naysoewin Naysoewin
4
Hello, Could someone explain me why I am receiving message: "CSRF token mismatch." , from server when i send api post request from React project (get request ok) It's working fine if i send request from Angular project or Postman . Thanks...
Create a New Discussion Button