Skip to content

Too slow sql query [closed]

pls help me about this problem. I have two table, t1 with 50 000 row, t2 10 row, and the query is too slow. Any easiest way speed up? Thanks. $sql = $_db_->_sql_query(“SELECT date FROM t1 …

PHP sum elements of two multi dimensional arrays

This is my first post on StackOverflow. I am looking for the best way to take two arrays that each has a different amount of data items, merge them, but summing together the items that have the same …

How do you add a route to Fortify in Laravel 8?

I have Laravel with Jetstream installed. How can I add a route to Fortify? I’ve read through the whole readme: https://github.com/laravel/fortify/blob/1.x/README.md That readme provides ways to …

Why is today`s weekday pluss two not working?

Any reason why $daynames[$dayW +1] works and displays todays dayname +1, but not $daynames[$dayW +2]? I am trying to display days in the week +1 day in the first and +2 days in the second cell, but I get an error on the +2 line. Answer I guess you’re trying to print what is the day name when you add

Laravel Storage rename file before downlaod

I want to rename a file in the moment before download it in Laravel 8.0: I currently using the following code: But I can’t find a way to rename it before download it. I don’t want to rename the file in S3. Answer You can pass second argument to download method as below