Commit Graph

13 Commits

Author SHA1 Message Date
3d6b0dbeca
Fixed bug causing error 500 on production
Some PHP version or configuration were causing this error.

On app.blade.php of local branch, I could use "$usedItems ? :"
even if $usedItems were null, but I had to check an "isset" to the production.

On HomecController, I had to change the "object" parameter of getUsername
to "\Illuminate\Database\Eloquent\Collection" to make it work.

I took the chance to just show the number of itens in use
if it were greater than 0.
2018-10-16 20:28:59 -03:00
7a8d5ccaff
Refreshing and Including number of used items on Title
It was necessary to keep refreshing the page to
check if an item was returned when we did not
want to be alerted. So, now, the page refresh
itself every 2 minutes (while I do not know how
to use Laravel broadcasting) and the title shows
the number of items in use (including when used
by you).
2018-10-16 15:15:05 -03:00
8c4fe0a489
Refactoring
Including some use for classes;
REfactoring the HomeController, to make it cleaner
and avoid repeating code.
2018-10-10 00:46:28 -03:00
0cd807169e
Groups HOME itesm by Product 2018-09-21 00:45:06 -03:00
092281a228
Including authenticaed user on models: Items, Product and User 2018-09-19 15:00:49 -03:00
c2907c3a0f
Including Alert me! 2018-09-15 02:09:07 -03:00
c6f27882da
Refactoring HomeController
Avoiding requests to DB
2018-09-15 00:05:24 -03:00
882609fed0
Including occupied username and renaming DB field
Now it shows the username of who is using an item.
Item db field 'usedBy' was renamed to 'used_by' to keep consistence.
2018-09-14 12:52:07 -03:00
c1b4ac419d
Refactoring homeController code 2018-09-12 21:25:48 -03:00
9f67cbcbeb
Adding product name with the item name on the Home page 2018-09-12 18:24:56 -03:00
0f15e60c95
Imrpoving Item, Product and Users 2018-09-11 20:48:09 -03:00
25cff75c48
Including Items and Products views and controllers 2018-09-10 01:23:51 -03:00
112d3dc44e
Adding User login and registration 2018-09-09 01:03:41 -03:00