I am using PHP to access data on old machines and output them. Putty shows: ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ ▒NONE. ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ Its the weird formatting in a attempt to show data in a more clean way PHP …
Changes to page are not saved (on page reload)
When im logged in i can see the “Remove Stone” button and when i click it, it goes away but when i reload the page it comes back. Any help? Thanks a bunch!Im also loading this into the html page with a seperate php file using this: Also if anyone has a better solution on what to do, im all
Laravel : How to add days to datetime field?
How to add days to datetime field in Laravel? For example, there is a updated_at field in articles table: I want to add 30 days to updated_at field. In Carbon, it could be done like this: But how to do it in above example? Answer Since updated_at and created_at fields are automatically cast to an instance of …
Laravel on nginx displays 403, but my path is correct
I have a digitalocean droplet and I want to run a laravel project. I used this tutorial https://www.digitalocean.com/community/tutorials/how-to-deploy-a-laravel-application-with-nginx-on-ubuntu-16-04 …
Checking duplicated data in Laravel
This code work as send to inn_db table from ext_db. but it cannot check if the data is the same or different in inn_db. So there posited same values in inn_db. How could I add that job?. Laravel-5.4, MySQL, InnoDB. Finally, I got the answer as below code with connect view when after discussion. Thanks to @Pra…
Instantiate new class instance inside Symfony services (Best practice)
In Symfony when I create a service and I need an instance of some classes, I pass them as parameter in service or I can create a new instance inside my functions service. I ask this because some Classes constructor needs parameters which I don’t have yet when passing the class as parameter. Answer you p…
Broadcasting, laravel-echo-server not receiving events
I’m using Laravel in a project and I want to use broadcasting with laravel-echo-server and Redis. I have set up both in a docker container. Output below: Redis A few warnings but nothing breaking. laravel-echo-server The client seems to join the channel without any problems. However, if I kick of an eve…
Laravel 5.5 Eloquent get distinct with more than 1 column
I have a table which is indexed by id and also has a column description. I want to use this in a form with it populating a radio group. My problem is if I try $colours = Colours::where(‘…
Add a line break in Woocommerce Product Titles
Let’s say my product title is: Brown Colored Leather Shoes But based on my column width the title looks like this: Brown Colored Leather Shoes I know it’s possible to do a character …
How to hide .env passwords in Laravel whoops output?
How can I hide my passwords and other sensitive environment variables on-screen in Laravel’s whoops output? Sometimes other people are looking at my development work. I don’t want them to see these secrets if an exception is thrown, but I also don’t want to have to keep toggling debug on and…