CRON in Cpanel and laravel – PHP Versions
I need to perform a scheduled task in CPanel, I know I should use CRON to do the task every day. I'm using Laravel 7 and PHP version 7.2, I try running task locally on windows and make sure it…
I need to perform a scheduled task in CPanel, I know I should use CRON to do the task every day. I'm using Laravel 7 and PHP version 7.2, I try running task locally on windows and make sure it…
I've looked at similar questions, and the answers I get is to put limit in my query, which I did. Here is the query $sql = DB::table('inventorysku_tb as isku') ->leftJoin('inventorytrackingmodules_tb as itm', function ($join) { $join->where('itm.coID', '=', 4) ->whereBetween('itm.effectiveDate', ['2021-05-01',…
I have started to play with my first Laravel project on a MacOS. I am using Laravel Sail for running the project inside a container and everything seems to work except the debugging part. Versions used: Laravel 8.66, PHP 8.0.12,…
I am using vue cdn link in welcome.blade.php file. I used script in welcome blade. And in app.js I defined vue instances. require('./bootstrap'); import Vue from 'vue'; let app = new Vue({ el:'#app', data:{ name:'project', } }); export default app…
I have 2 table, warehouse and item category, i wanna show my table in select option ajax. I managed to display select option item category. My Ajax Code $(function () { var i = 0; $("#add-more-item").click(function () { ++i; $.ajax({…
I am trying to make a crud function in laravel with custom primary ID. The Create, Read, and Delete are all working but whenever I tried Update I get an error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in…
Recently I have migrated one of my projects (PHP 7.4/Lumen/Ubuntu 20.04) from MongoDB to MongoDB compatible AWS DocumentDB. Since the migration all the CLI Scripts are triggering this strange notice/warning bson_append_array(): invalid array detected. first element of array parameter is…
OS: Microsoft Windows 10 backend framework: Laravel my goal: when I access to "http://example.domain", it can direct to laravel index.php. httpd-vhosts.conf: <VirtualHost *:80> DocumentRoot "C:Apache24htdocsNKUST_foodpandapublic" DirectoryIndex index.php ServerName example.domain ErrorLog "C:Apache24logserror.log" CustomLog "C:Apache24logsaccess.log" combined <Directory "C:Apache24htdocsNKUST_foodpandapublic"> Options FollowSymLinks AllowOverride All…
I'm using stateless fromUserToken and this is the error I'm getting: "errors": { "error": "Client error: `GET https://www.googleapis.com/oauth2/v3/userinfo?prettyPrint=false` resulted in a `401 Unauthorized` response:n{n "error": "invalid_request",n "error_description": "Invalid Credentials"n}n", "code": 401 } this is my endpoint that I use, it…
i'm trying to make an example project to learn laravel. I set up the project on my computer and everything worked fine: I have my web.php that routes / to a view, but before that it collects devices so it…