mirror of
				https://github.com/brunofontes/shareit.git
				synced 2025-11-03 19:21:03 -03:00 
			
		
		
		
	Compare commits
	
		
			No commits in common. "5c143450e700bb6f521d7d9fd6a230346e17e442" and "f89e0639dc872408791ca524e5a2518587f77e04" have entirely different histories.
		
	
	
		
			5c143450e7
			...
			f89e0639dc
		
	
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -9,4 +9,3 @@ npm-debug.log
 | 
				
			|||||||
yarn-error.log
 | 
					yarn-error.log
 | 
				
			||||||
.env
 | 
					.env
 | 
				
			||||||
.phpunit.result.cache
 | 
					.phpunit.result.cache
 | 
				
			||||||
tags
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -3,10 +3,13 @@
 | 
				
			|||||||
namespace App\Events;
 | 
					namespace App\Events;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use \App\Item;
 | 
					use \App\Item;
 | 
				
			||||||
use Illuminate\Broadcasting\InteractsWithSockets;
 | 
					use Illuminate\Broadcasting\Channel;
 | 
				
			||||||
use Illuminate\Broadcasting\PrivateChannel;
 | 
					 | 
				
			||||||
use Illuminate\Foundation\Events\Dispatchable;
 | 
					 | 
				
			||||||
use Illuminate\Queue\SerializesModels;
 | 
					use Illuminate\Queue\SerializesModels;
 | 
				
			||||||
 | 
					use Illuminate\Broadcasting\PrivateChannel;
 | 
				
			||||||
 | 
					use Illuminate\Broadcasting\PresenceChannel;
 | 
				
			||||||
 | 
					use Illuminate\Foundation\Events\Dispatchable;
 | 
				
			||||||
 | 
					use Illuminate\Broadcasting\InteractsWithSockets;
 | 
				
			||||||
 | 
					use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ReturnItem
 | 
					class ReturnItem
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -17,7 +20,7 @@ class ReturnItem
 | 
				
			|||||||
     * Create a new event instance.
 | 
					     * Create a new event instance.
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @param Item $item The returned item.
 | 
					     * @param Item $item The returned item.
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return void
 | 
					     * @return void
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public function __construct(Item $item)
 | 
					    public function __construct(Item $item)
 | 
				
			||||||
 | 
				
			|||||||
@ -3,8 +3,8 @@
 | 
				
			|||||||
namespace App\Exceptions;
 | 
					namespace App\Exceptions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Exception;
 | 
					use Exception;
 | 
				
			||||||
 | 
					Use Throwable;
 | 
				
			||||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
 | 
					use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
 | 
				
			||||||
use Throwable;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Handler extends ExceptionHandler
 | 
					class Handler extends ExceptionHandler
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -2,12 +2,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Http\Controllers;
 | 
					namespace App\Http\Controllers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use \App\Mail\UserWaiting;
 | 
					use Auth;
 | 
				
			||||||
 | 
					use Mail;
 | 
				
			||||||
use \App\User;
 | 
					use \App\User;
 | 
				
			||||||
use App\FlashMessage;
 | 
					use App\FlashMessage;
 | 
				
			||||||
use Auth;
 | 
					use \App\Mail\UserWaiting;
 | 
				
			||||||
use Illuminate\Http\Request;
 | 
					use Illuminate\Http\Request;
 | 
				
			||||||
use Mail;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
class AlertController extends Controller
 | 
					class AlertController extends Controller
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -17,7 +17,7 @@ class AlertController extends Controller
 | 
				
			|||||||
     * the item is free
 | 
					     * the item is free
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @param Request $request Form data
 | 
					     * @param Request $request Form data
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return redirect to home
 | 
					     * @return redirect to home
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public function store(Request $request)
 | 
					    public function store(Request $request)
 | 
				
			||||||
@ -25,7 +25,7 @@ class AlertController extends Controller
 | 
				
			|||||||
        $item = User::loggedIn()->items()->find(request('item'));
 | 
					        $item = User::loggedIn()->items()->find(request('item'));
 | 
				
			||||||
        if (!$item->used_by) {
 | 
					        if (!$item->used_by) {
 | 
				
			||||||
            session()->flash(
 | 
					            session()->flash(
 | 
				
			||||||
                FlashMessage::PRIMARY,
 | 
					                FlashMessage::PRIMARY, 
 | 
				
			||||||
                __('Oh! This item has just being returned. Take it before anyone else!')
 | 
					                __('Oh! This item has just being returned. Take it before anyone else!')
 | 
				
			||||||
            );
 | 
					            );
 | 
				
			||||||
            return redirect('home');
 | 
					            return redirect('home');
 | 
				
			||||||
 | 
				
			|||||||
@ -2,13 +2,13 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Http\Controllers\Auth;
 | 
					namespace App\Http\Controllers\Auth;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use App\FlashMessage;
 | 
					 | 
				
			||||||
use App\Http\Controllers\Controller;
 | 
					 | 
				
			||||||
use App\Mail\Welcome;
 | 
					 | 
				
			||||||
use App\User;
 | 
					use App\User;
 | 
				
			||||||
use Illuminate\Foundation\Auth\RegistersUsers;
 | 
					use App\Mail\Welcome;
 | 
				
			||||||
 | 
					use App\Http\Controllers\Controller;
 | 
				
			||||||
use Illuminate\Support\Facades\Hash;
 | 
					use Illuminate\Support\Facades\Hash;
 | 
				
			||||||
use Illuminate\Support\Facades\Validator;
 | 
					use Illuminate\Support\Facades\Validator;
 | 
				
			||||||
 | 
					use Illuminate\Foundation\Auth\RegistersUsers;
 | 
				
			||||||
 | 
					use App\FlashMessage;
 | 
				
			||||||
use Mail;
 | 
					use Mail;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class RegisterController extends Controller
 | 
					class RegisterController extends Controller
 | 
				
			||||||
 | 
				
			|||||||
@ -2,10 +2,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Http\Controllers;
 | 
					namespace App\Http\Controllers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
 | 
					 | 
				
			||||||
use Illuminate\Foundation\Bus\DispatchesJobs;
 | 
					use Illuminate\Foundation\Bus\DispatchesJobs;
 | 
				
			||||||
use Illuminate\Foundation\Validation\ValidatesRequests;
 | 
					 | 
				
			||||||
use Illuminate\Routing\Controller as BaseController;
 | 
					use Illuminate\Routing\Controller as BaseController;
 | 
				
			||||||
 | 
					use Illuminate\Foundation\Validation\ValidatesRequests;
 | 
				
			||||||
 | 
					use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Controller extends BaseController
 | 
					class Controller extends BaseController
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -42,14 +42,14 @@ class HomeController extends Controller
 | 
				
			|||||||
            ->groupBy('product.name');
 | 
					            ->groupBy('product.name');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return view(
 | 
					        return view(
 | 
				
			||||||
            'home',
 | 
					            'home', 
 | 
				
			||||||
            ['products' => $products, 'users' => $this->activeUsers, 'usedItems' => $numberOfUsedItems]
 | 
					            ['products' => $products, 'users' => $this->activeUsers, 'usedItems' => $numberOfUsedItems]
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Get the username from an specified user id.
 | 
					     * Get the username from an specified user id.
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @param object $itemUsers Array with IDs and usernames
 | 
					     * @param object $itemUsers Array with IDs and usernames
 | 
				
			||||||
     * @param int    $id        The user id to search for
 | 
					     * @param int    $id        The user id to search for
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
 | 
				
			|||||||
@ -4,8 +4,8 @@ namespace App\Http\Controllers;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
use \App\Item;
 | 
					use \App\Item;
 | 
				
			||||||
use \App\User;
 | 
					use \App\User;
 | 
				
			||||||
use App\FlashMessage as flash;
 | 
					 | 
				
			||||||
use Illuminate\Http\Request;
 | 
					use Illuminate\Http\Request;
 | 
				
			||||||
 | 
					use App\FlashMessage as flash;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ItemController extends Controller
 | 
					class ItemController extends Controller
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -13,8 +13,7 @@ class ItemController extends Controller
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        $item = Item::find($id);
 | 
					        $item = Item::find($id);
 | 
				
			||||||
        if (!$item || $item->product->user_id != \Auth::id()) {
 | 
					        if (!$item || $item->product->user_id != \Auth::id()) {
 | 
				
			||||||
            session()->flash(
 | 
					            session()->flash(flash::DANGER, 
 | 
				
			||||||
                flash::DANGER,
 | 
					 | 
				
			||||||
                \Lang::getFromJson(
 | 
					                \Lang::getFromJson(
 | 
				
			||||||
                    "The item doesn't exist."
 | 
					                    "The item doesn't exist."
 | 
				
			||||||
                )
 | 
					                )
 | 
				
			||||||
 | 
				
			|||||||
@ -3,6 +3,7 @@
 | 
				
			|||||||
namespace App\Http\Controllers;
 | 
					namespace App\Http\Controllers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use App;
 | 
					use App;
 | 
				
			||||||
 | 
					use Lang;
 | 
				
			||||||
use App\User;
 | 
					use App\User;
 | 
				
			||||||
use Illuminate\Http\Request;
 | 
					use Illuminate\Http\Request;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -3,10 +3,10 @@
 | 
				
			|||||||
namespace App\Http\Controllers;
 | 
					namespace App\Http\Controllers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use \App\Item;
 | 
					use \App\Item;
 | 
				
			||||||
use \App\Product;
 | 
					 | 
				
			||||||
use \App\User;
 | 
					use \App\User;
 | 
				
			||||||
use App\FlashMessage as flash;
 | 
					use \App\Product;
 | 
				
			||||||
use Illuminate\Http\Request;
 | 
					use Illuminate\Http\Request;
 | 
				
			||||||
 | 
					use App\FlashMessage as flash;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ProductController extends Controller
 | 
					class ProductController extends Controller
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -72,7 +72,7 @@ class ProductController extends Controller
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        if (!$product) {
 | 
					        if (!$product) {
 | 
				
			||||||
            session()->flash(
 | 
					            session()->flash(
 | 
				
			||||||
                flash::DANGER,
 | 
					                flash::DANGER, 
 | 
				
			||||||
                \Lang::getFromJson(
 | 
					                \Lang::getFromJson(
 | 
				
			||||||
                    "The product doesn't exist or doesn't belongs to you."
 | 
					                    "The product doesn't exist or doesn't belongs to you."
 | 
				
			||||||
                )
 | 
					                )
 | 
				
			||||||
 | 
				
			|||||||
@ -2,11 +2,13 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Http\Controllers;
 | 
					namespace App\Http\Controllers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use App\Events\ReturnItem;
 | 
					use Auth;
 | 
				
			||||||
 | 
					use Lang;
 | 
				
			||||||
use App\Item;
 | 
					use App\Item;
 | 
				
			||||||
use App\User;
 | 
					use App\User;
 | 
				
			||||||
 | 
					use App\Events\ReturnItem;
 | 
				
			||||||
use Illuminate\Http\Request;
 | 
					use Illuminate\Http\Request;
 | 
				
			||||||
use Lang;
 | 
					use PhpParser\Node\Stmt\TryCatch;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Responsible to Take and Return an Item.
 | 
					 * Responsible to Take and Return an Item.
 | 
				
			||||||
@ -17,7 +19,7 @@ class TakeController extends Controller
 | 
				
			|||||||
     * The user take an item
 | 
					     * The user take an item
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @param Request $request The form data
 | 
					     * @param Request $request The form data
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return home view
 | 
					     * @return home view
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public function store(Request $request)
 | 
					    public function store(Request $request)
 | 
				
			||||||
@ -40,7 +42,7 @@ class TakeController extends Controller
 | 
				
			|||||||
     * Trigger an event: ReturnItem
 | 
					     * Trigger an event: ReturnItem
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @param Request $request Form data
 | 
					     * @param Request $request Form data
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return View home
 | 
					     * @return View home
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public function delete(Request $request)
 | 
					    public function delete(Request $request)
 | 
				
			||||||
@ -49,6 +51,7 @@ class TakeController extends Controller
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        try {
 | 
					        try {
 | 
				
			||||||
            $item->returnItem();
 | 
					            $item->returnItem();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        } catch (\Exception $e) {
 | 
					        } catch (\Exception $e) {
 | 
				
			||||||
            return back()->withErrors(
 | 
					            return back()->withErrors(
 | 
				
			||||||
                Lang::getFromJson("You cannot return an item that is not with you")
 | 
					                Lang::getFromJson("You cannot return an item that is not with you")
 | 
				
			||||||
 | 
				
			|||||||
@ -2,9 +2,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Http\Controllers;
 | 
					namespace App\Http\Controllers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use \App\Item;
 | 
					 | 
				
			||||||
use \App\User;
 | 
					 | 
				
			||||||
use \Lang;
 | 
					use \Lang;
 | 
				
			||||||
 | 
					use \App\User;
 | 
				
			||||||
 | 
					use \App\Item;
 | 
				
			||||||
 | 
					use \App\Product;
 | 
				
			||||||
use Illuminate\Http\Request;
 | 
					use Illuminate\Http\Request;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class UserController extends Controller
 | 
					class UserController extends Controller
 | 
				
			||||||
 | 
				
			|||||||
@ -2,8 +2,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Http\Middleware;
 | 
					namespace App\Http\Middleware;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Fideloper\Proxy\TrustProxies as Middleware;
 | 
					 | 
				
			||||||
use Illuminate\Http\Request;
 | 
					use Illuminate\Http\Request;
 | 
				
			||||||
 | 
					use Fideloper\Proxy\TrustProxies as Middleware;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class TrustProxies extends Middleware
 | 
					class TrustProxies extends Middleware
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										13
									
								
								app/Item.php
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								app/Item.php
									
									
									
									
									
								
							@ -3,8 +3,9 @@
 | 
				
			|||||||
namespace App;
 | 
					namespace App;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Auth;
 | 
					use Auth;
 | 
				
			||||||
use Exception;
 | 
					use Lang;
 | 
				
			||||||
use Illuminate\Database\Eloquent\Model;
 | 
					use Illuminate\Database\Eloquent\Model;
 | 
				
			||||||
 | 
					use Exception;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Item extends Model
 | 
					class Item extends Model
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -33,7 +34,7 @@ class Item extends Model
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Return the items from logged in user
 | 
					     * Return the items from logged in user
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return \App\Item
 | 
					     * @return \App\Item
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public static function fromAuthUser()
 | 
					    public static function fromAuthUser()
 | 
				
			||||||
@ -43,7 +44,7 @@ class Item extends Model
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Take a specified item
 | 
					     * Take a specified item
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return void
 | 
					     * @return void
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public function takeItem()
 | 
					    public function takeItem()
 | 
				
			||||||
@ -59,7 +60,7 @@ class Item extends Model
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Return a specified item
 | 
					     * Return a specified item
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return void
 | 
					     * @return void
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public function returnItem()
 | 
					    public function returnItem()
 | 
				
			||||||
@ -74,7 +75,7 @@ class Item extends Model
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Store a waiting user to the item
 | 
					     * Store a waiting user to the item
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return void
 | 
					     * @return void
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public function storeAlert()
 | 
					    public function storeAlert()
 | 
				
			||||||
@ -86,7 +87,7 @@ class Item extends Model
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Remove a waiting user to the item
 | 
					     * Remove a waiting user to the item
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return void
 | 
					     * @return void
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public function removeAlert()
 | 
					    public function removeAlert()
 | 
				
			||||||
 | 
				
			|||||||
@ -2,10 +2,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Listeners;
 | 
					namespace App\Listeners;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					use Mail;
 | 
				
			||||||
 | 
					use App\User;
 | 
				
			||||||
use App\Events\ReturnItem;
 | 
					use App\Events\ReturnItem;
 | 
				
			||||||
use App\Mail\ItemAvailable;
 | 
					use App\Mail\ItemAvailable;
 | 
				
			||||||
use App\User;
 | 
					use Illuminate\Queue\InteractsWithQueue;
 | 
				
			||||||
use Mail;
 | 
					use Illuminate\Contracts\Queue\ShouldQueue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class AlertReturnedItem
 | 
					class AlertReturnedItem
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -24,7 +26,7 @@ class AlertReturnedItem
 | 
				
			|||||||
     * is waiting for the item
 | 
					     * is waiting for the item
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @param ReturnItem $event The return event that contains an item
 | 
					     * @param ReturnItem $event The return event that contains an item
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return void
 | 
					     * @return void
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public function handle(ReturnItem $event)
 | 
					    public function handle(ReturnItem $event)
 | 
				
			||||||
 | 
				
			|||||||
@ -3,8 +3,10 @@
 | 
				
			|||||||
namespace App\Listeners;
 | 
					namespace App\Listeners;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use App\User;
 | 
					use App\User;
 | 
				
			||||||
use Illuminate\Auth\Events\Login;
 | 
					 | 
				
			||||||
use IlluminateAuthEventsLogin;
 | 
					use IlluminateAuthEventsLogin;
 | 
				
			||||||
 | 
					use Illuminate\Queue\InteractsWithQueue;
 | 
				
			||||||
 | 
					use Illuminate\Contracts\Queue\ShouldQueue;
 | 
				
			||||||
 | 
					use Illuminate\Auth\Events\Login;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class SetLanguage
 | 
					class SetLanguage
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -6,6 +6,7 @@ use \App\Item;
 | 
				
			|||||||
use Illuminate\Bus\Queueable;
 | 
					use Illuminate\Bus\Queueable;
 | 
				
			||||||
use Illuminate\Mail\Mailable;
 | 
					use Illuminate\Mail\Mailable;
 | 
				
			||||||
use Illuminate\Queue\SerializesModels;
 | 
					use Illuminate\Queue\SerializesModels;
 | 
				
			||||||
 | 
					use Illuminate\Contracts\Queue\ShouldQueue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ItemAvailable extends Mailable
 | 
					class ItemAvailable extends Mailable
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -33,7 +34,7 @@ class ItemAvailable extends Mailable
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        return $this->subject(
 | 
					        return $this->subject(
 | 
				
			||||||
            \Lang::getFromJson(
 | 
					            \Lang::getFromJson(
 | 
				
			||||||
                ':itemname is available!',
 | 
					                ':itemname is available!', 
 | 
				
			||||||
                ['itemname' => $this->item->name]
 | 
					                ['itemname' => $this->item->name]
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
        )->markdown('emails.itemAvailable');
 | 
					        )->markdown('emails.itemAvailable');
 | 
				
			||||||
 | 
				
			|||||||
@ -2,17 +2,18 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Mail;
 | 
					namespace App\Mail;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					use Lang;
 | 
				
			||||||
use \App\Item;
 | 
					use \App\Item;
 | 
				
			||||||
use Illuminate\Bus\Queueable;
 | 
					use Illuminate\Bus\Queueable;
 | 
				
			||||||
use Illuminate\Mail\Mailable;
 | 
					use Illuminate\Mail\Mailable;
 | 
				
			||||||
use Illuminate\Queue\SerializesModels;
 | 
					use Illuminate\Queue\SerializesModels;
 | 
				
			||||||
use Lang;
 | 
					use Illuminate\Contracts\Queue\ShouldQueue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class UserWaiting extends Mailable
 | 
					class UserWaiting extends Mailable
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public $item;
 | 
					    public $item;
 | 
				
			||||||
    public $waitingUser;
 | 
					    public $waitingUser;
 | 
				
			||||||
    public $userWithItem;
 | 
					    public $userWithItem; 
 | 
				
			||||||
    use Queueable, SerializesModels;
 | 
					    use Queueable, SerializesModels;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
@ -35,10 +36,10 @@ class UserWaiting extends Mailable
 | 
				
			|||||||
    public function build()
 | 
					    public function build()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return $this->subject(
 | 
					        return $this->subject(
 | 
				
			||||||
            Lang::get(
 | 
					            Lang::getFromJson(
 | 
				
			||||||
                ':waitinguser wants to use :itemname',
 | 
					                ':waitinguser wants to use :itemname', 
 | 
				
			||||||
                [
 | 
					                [
 | 
				
			||||||
                    'waitinguser' => $this->waitingUser,
 | 
					                    'waitinguser' => $this->waitingUser, 
 | 
				
			||||||
                    'itemname' => $this->item->name
 | 
					                    'itemname' => $this->item->name
 | 
				
			||||||
                ]
 | 
					                ]
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
 | 
				
			|||||||
@ -2,11 +2,12 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Mail;
 | 
					namespace App\Mail;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use \App\User;
 | 
					 | 
				
			||||||
use \Lang;
 | 
					use \Lang;
 | 
				
			||||||
 | 
					use \App\User;
 | 
				
			||||||
use Illuminate\Bus\Queueable;
 | 
					use Illuminate\Bus\Queueable;
 | 
				
			||||||
use Illuminate\Mail\Mailable;
 | 
					use Illuminate\Mail\Mailable;
 | 
				
			||||||
use Illuminate\Queue\SerializesModels;
 | 
					use Illuminate\Queue\SerializesModels;
 | 
				
			||||||
 | 
					use Illuminate\Contracts\Queue\ShouldQueue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Welcome extends Mailable
 | 
					class Welcome extends Mailable
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -20,7 +20,7 @@ class Product extends Model
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Return the products from logged in user
 | 
					     * Return the products from logged in user
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return \App\Product
 | 
					     * @return \App\Product
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public static function fromAuthUser()
 | 
					    public static function fromAuthUser()
 | 
				
			||||||
 | 
				
			|||||||
@ -2,8 +2,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Providers;
 | 
					namespace App\Providers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Illuminate\Support\Facades\Schema;
 | 
					 | 
				
			||||||
use Illuminate\Support\ServiceProvider;
 | 
					use Illuminate\Support\ServiceProvider;
 | 
				
			||||||
 | 
					use Illuminate\Support\Facades\Schema;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class AppServiceProvider extends ServiceProvider
 | 
					class AppServiceProvider extends ServiceProvider
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -14,7 +14,7 @@ class AppServiceProvider extends ServiceProvider
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    public function boot()
 | 
					    public function boot()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        Schema::defaultStringLength(191); //Solved by increasing StringLength
 | 
						Schema::defaultStringLength(191); //Solved by increasing StringLength
 | 
				
			||||||
        //
 | 
					        //
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -2,6 +2,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Providers;
 | 
					namespace App\Providers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					use Illuminate\Support\Facades\Gate;
 | 
				
			||||||
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
 | 
					use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class AuthServiceProvider extends ServiceProvider
 | 
					class AuthServiceProvider extends ServiceProvider
 | 
				
			||||||
 | 
				
			|||||||
@ -2,8 +2,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Providers;
 | 
					namespace App\Providers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Illuminate\Support\Facades\Broadcast;
 | 
					 | 
				
			||||||
use Illuminate\Support\ServiceProvider;
 | 
					use Illuminate\Support\ServiceProvider;
 | 
				
			||||||
 | 
					use Illuminate\Support\Facades\Broadcast;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class BroadcastServiceProvider extends ServiceProvider
 | 
					class BroadcastServiceProvider extends ServiceProvider
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -3,12 +3,12 @@
 | 
				
			|||||||
namespace App\Providers;
 | 
					namespace App\Providers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use App\Events\ReturnItem;
 | 
					use App\Events\ReturnItem;
 | 
				
			||||||
use App\Listeners\AlertReturnedItem;
 | 
					 | 
				
			||||||
use App\Listeners\SetLanguage;
 | 
					use App\Listeners\SetLanguage;
 | 
				
			||||||
 | 
					use App\Listeners\AlertReturnedItem;
 | 
				
			||||||
 | 
					use Illuminate\Support\Facades\Event;
 | 
				
			||||||
use Illuminate\Auth\Events\Registered;
 | 
					use Illuminate\Auth\Events\Registered;
 | 
				
			||||||
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
 | 
					use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
 | 
				
			||||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
 | 
					use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
 | 
				
			||||||
use Illuminate\Support\Facades\Event;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
class EventServiceProvider extends ServiceProvider
 | 
					class EventServiceProvider extends ServiceProvider
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -2,8 +2,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
namespace App\Providers;
 | 
					namespace App\Providers;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
 | 
					 | 
				
			||||||
use Illuminate\Support\Facades\Route;
 | 
					use Illuminate\Support\Facades\Route;
 | 
				
			||||||
 | 
					use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class RouteServiceProvider extends ServiceProvider
 | 
					class RouteServiceProvider extends ServiceProvider
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -3,9 +3,10 @@
 | 
				
			|||||||
namespace App;
 | 
					namespace App;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Auth;
 | 
					use Auth;
 | 
				
			||||||
 | 
					use Illuminate\Notifications\Notifiable;
 | 
				
			||||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
 | 
					use Illuminate\Contracts\Auth\MustVerifyEmail;
 | 
				
			||||||
use Illuminate\Foundation\Auth\User as Authenticatable;
 | 
					use Illuminate\Foundation\Auth\User as Authenticatable;
 | 
				
			||||||
use Illuminate\Notifications\Notifiable;
 | 
					use Illuminate\Support\Facades\Request;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class User extends Authenticatable implements MustVerifyEmail
 | 
					class User extends Authenticatable implements MustVerifyEmail
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
@ -41,7 +42,7 @@ class User extends Authenticatable implements MustVerifyEmail
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Return the logged in user
 | 
					     * Return the logged in user
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @return \App\User
 | 
					     * @return \App\User
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    public static function loggedIn()
 | 
					    public static function loggedIn()
 | 
				
			||||||
@ -52,7 +53,7 @@ class User extends Authenticatable implements MustVerifyEmail
 | 
				
			|||||||
    /**
 | 
					    /**
 | 
				
			||||||
     * Set the default website language
 | 
					     * Set the default website language
 | 
				
			||||||
     * for the acual user
 | 
					     * for the acual user
 | 
				
			||||||
     *
 | 
					     * 
 | 
				
			||||||
     * @param string $language The language code
 | 
					     * @param string $language The language code
 | 
				
			||||||
     *
 | 
					     *
 | 
				
			||||||
     * @return void
 | 
					     * @return void
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										457
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										457
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -30,4 +30,4 @@ $factory->define(App\Product::class, function (Faker $faker) {
 | 
				
			|||||||
            return factory(App\User::class)->create()->id;
 | 
					            return factory(App\User::class)->create()->id;
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
    ];
 | 
					    ];
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
@ -1,8 +1,8 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Illuminate\Database\Migrations\Migration;
 | 
					 | 
				
			||||||
use Illuminate\Database\Schema\Blueprint;
 | 
					 | 
				
			||||||
use Illuminate\Support\Facades\Schema;
 | 
					use Illuminate\Support\Facades\Schema;
 | 
				
			||||||
 | 
					use Illuminate\Database\Schema\Blueprint;
 | 
				
			||||||
 | 
					use Illuminate\Database\Migrations\Migration;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class CreateUsersTable extends Migration
 | 
					class CreateUsersTable extends Migration
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -1,8 +1,8 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Illuminate\Database\Migrations\Migration;
 | 
					 | 
				
			||||||
use Illuminate\Database\Schema\Blueprint;
 | 
					 | 
				
			||||||
use Illuminate\Support\Facades\Schema;
 | 
					use Illuminate\Support\Facades\Schema;
 | 
				
			||||||
 | 
					use Illuminate\Database\Schema\Blueprint;
 | 
				
			||||||
 | 
					use Illuminate\Database\Migrations\Migration;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class CreatePasswordResetsTable extends Migration
 | 
					class CreatePasswordResetsTable extends Migration
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -1,8 +1,8 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Illuminate\Database\Migrations\Migration;
 | 
					 | 
				
			||||||
use Illuminate\Database\Schema\Blueprint;
 | 
					 | 
				
			||||||
use Illuminate\Support\Facades\Schema;
 | 
					use Illuminate\Support\Facades\Schema;
 | 
				
			||||||
 | 
					use Illuminate\Database\Schema\Blueprint;
 | 
				
			||||||
 | 
					use Illuminate\Database\Migrations\Migration;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class CreateProductsTable extends Migration
 | 
					class CreateProductsTable extends Migration
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -1,8 +1,8 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Illuminate\Database\Migrations\Migration;
 | 
					 | 
				
			||||||
use Illuminate\Database\Schema\Blueprint;
 | 
					 | 
				
			||||||
use Illuminate\Support\Facades\Schema;
 | 
					use Illuminate\Support\Facades\Schema;
 | 
				
			||||||
 | 
					use Illuminate\Database\Schema\Blueprint;
 | 
				
			||||||
 | 
					use Illuminate\Database\Migrations\Migration;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class CreateItemsTable extends Migration
 | 
					class CreateItemsTable extends Migration
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -1,8 +1,8 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Illuminate\Database\Migrations\Migration;
 | 
					 | 
				
			||||||
use Illuminate\Database\Schema\Blueprint;
 | 
					 | 
				
			||||||
use Illuminate\Support\Facades\Schema;
 | 
					use Illuminate\Support\Facades\Schema;
 | 
				
			||||||
 | 
					use Illuminate\Database\Schema\Blueprint;
 | 
				
			||||||
 | 
					use Illuminate\Database\Migrations\Migration;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class AddLocationToUsers extends Migration
 | 
					class AddLocationToUsers extends Migration
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										19969
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										19969
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -70,4 +70,4 @@ return [
 | 
				
			|||||||
                    To be able to do that you just need to select the item.</p>
 | 
					                    To be able to do that you just need to select the item.</p>
 | 
				
			||||||
                    <p class="mb-4">When adding a Product, you can specify a webpage (this is optional).</p>',
 | 
					                    <p class="mb-4">When adding a Product, you can specify a webpage (this is optional).</p>',
 | 
				
			||||||
     
 | 
					     
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
@ -9,4 +9,4 @@ return [
 | 
				
			|||||||
    'cancel_alert' => 'Cancel Alert',
 | 
					    'cancel_alert' => 'Cancel Alert',
 | 
				
			||||||
    'alert_me' => 'Alert me',
 | 
					    'alert_me' => 'Alert me',
 | 
				
			||||||
    'take' => 'Take It'
 | 
					    'take' => 'Take It'
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
@ -37,4 +37,4 @@ return [
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    'back' => 'BACK',
 | 
					    'back' => 'BACK',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
@ -2,7 +2,7 @@
 | 
				
			|||||||
/**
 | 
					/**
 | 
				
			||||||
 * Strings from the product pages
 | 
					 * Strings from the product pages
 | 
				
			||||||
 * They are separeted by the file that calls them.
 | 
					 * They are separeted by the file that calls them.
 | 
				
			||||||
 * Sometimes, a string is used on another file,
 | 
					 * Sometimes, a string is used on another file, 
 | 
				
			||||||
 * so it will stay at the common segment.
 | 
					 * so it will stay at the common segment.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -22,7 +22,7 @@ return [
 | 
				
			|||||||
    '100yearsSolitude' => 'One Hundred Years of Solitude',
 | 
					    '100yearsSolitude' => 'One Hundred Years of Solitude',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     /**
 | 
					     /**
 | 
				
			||||||
      * addProductForm.blade.php
 | 
					      * addProductForm.blade.php 
 | 
				
			||||||
      */
 | 
					      */
 | 
				
			||||||
    'name' => 'Name:',
 | 
					    'name' => 'Name:',
 | 
				
			||||||
    'book' => 'Book',
 | 
					    'book' => 'Book',
 | 
				
			||||||
@ -60,4 +60,4 @@ return [
 | 
				
			|||||||
    'noItemsYet' => 'There are no items yet. Include one with the form above.',
 | 
					    'noItemsYet' => 'There are no items yet. Include one with the form above.',
 | 
				
			||||||
    'addItem' => 'Add item',
 | 
					    'addItem' => 'Add item',
 | 
				
			||||||
    'back' => 'BACK',
 | 
					    'back' => 'BACK',
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
@ -7,4 +7,4 @@ return [
 | 
				
			|||||||
    'Help' => 'Help',
 | 
					    'Help' => 'Help',
 | 
				
			||||||
    'copyright' => '© 2018 Bruno Fontes All Rights Reserved',
 | 
					    'copyright' => '© 2018 Bruno Fontes All Rights Reserved',
 | 
				
			||||||
    'byAuthor' => 'By Bruno Fontes',
 | 
					    'byAuthor' => 'By Bruno Fontes',
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
@ -71,4 +71,4 @@ return [
 | 
				
			|||||||
                    Para fazer isso, você só precisa clicar no item que deseja compartilhar e incluir outras pessoas.</p>
 | 
					                    Para fazer isso, você só precisa clicar no item que deseja compartilhar e incluir outras pessoas.</p>
 | 
				
			||||||
                    <p class="mb-4">Ao adicionar um produto, você pode especificar um site (opcional).</p>',
 | 
					                    <p class="mb-4">Ao adicionar um produto, você pode especificar um site (opcional).</p>',
 | 
				
			||||||
     
 | 
					     
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
@ -9,4 +9,4 @@ return [
 | 
				
			|||||||
    'cancel_alert' => 'Cancelar alerta',
 | 
					    'cancel_alert' => 'Cancelar alerta',
 | 
				
			||||||
    'alert_me' => 'Alertar',
 | 
					    'alert_me' => 'Alertar',
 | 
				
			||||||
    'take' => 'Usar'
 | 
					    'take' => 'Usar'
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
@ -36,4 +36,4 @@ return [
 | 
				
			|||||||
     * String from item.blade.php
 | 
					     * String from item.blade.php
 | 
				
			||||||
     */
 | 
					     */
 | 
				
			||||||
    'back' => 'VOLTAR',
 | 
					    'back' => 'VOLTAR',
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
@ -2,7 +2,7 @@
 | 
				
			|||||||
/**
 | 
					/**
 | 
				
			||||||
 * Strings from the product pages
 | 
					 * Strings from the product pages
 | 
				
			||||||
 * They are separeted by the file that calls them.
 | 
					 * They are separeted by the file that calls them.
 | 
				
			||||||
 * Sometimes, a string is used on another file,
 | 
					 * Sometimes, a string is used on another file, 
 | 
				
			||||||
 * so it will stay at the common segment.
 | 
					 * so it will stay at the common segment.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -20,7 +20,7 @@ return [
 | 
				
			|||||||
    '100yearsSolitude' => 'Cem anos de solidão',
 | 
					    '100yearsSolitude' => 'Cem anos de solidão',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
     /**
 | 
					     /**
 | 
				
			||||||
      * addProductForm.blade.php
 | 
					      * addProductForm.blade.php 
 | 
				
			||||||
      */
 | 
					      */
 | 
				
			||||||
    'name' => 'Nome:',
 | 
					    'name' => 'Nome:',
 | 
				
			||||||
    'book' => 'Livro',
 | 
					    'book' => 'Livro',
 | 
				
			||||||
@ -58,4 +58,4 @@ return [
 | 
				
			|||||||
    'noItemsYet' => 'Ainda não há itens cadastrados. Inclua um no formulário acima.',
 | 
					    'noItemsYet' => 'Ainda não há itens cadastrados. Inclua um no formulário acima.',
 | 
				
			||||||
    'addItem' => 'Incluir item',
 | 
					    'addItem' => 'Incluir item',
 | 
				
			||||||
    'back' => 'VOLTAR',
 | 
					    'back' => 'VOLTAR',
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
@ -7,4 +7,4 @@ return [
 | 
				
			|||||||
    'Help' => 'Ajuda',
 | 
					    'Help' => 'Ajuda',
 | 
				
			||||||
    'copyright' => '© 2018 Bruno Fontes Todos os direitos reservados',
 | 
					    'copyright' => '© 2018 Bruno Fontes Todos os direitos reservados',
 | 
				
			||||||
    'byAuthor' => 'Por Bruno Fontes',
 | 
					    'byAuthor' => 'Por Bruno Fontes',
 | 
				
			||||||
];
 | 
					];
 | 
				
			||||||
@ -3,8 +3,8 @@
 | 
				
			|||||||
namespace Tests\Feature;
 | 
					namespace Tests\Feature;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use \App\Product;
 | 
					use \App\Product;
 | 
				
			||||||
use Illuminate\Foundation\Testing\RefreshDatabase;
 | 
					 | 
				
			||||||
use Tests\TestCase;
 | 
					use Tests\TestCase;
 | 
				
			||||||
 | 
					use Illuminate\Foundation\Testing\RefreshDatabase;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ExampleTest extends TestCase
 | 
					class ExampleTest extends TestCase
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
@ -3,6 +3,7 @@
 | 
				
			|||||||
namespace Tests\Unit;
 | 
					namespace Tests\Unit;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use Tests\TestCase;
 | 
					use Tests\TestCase;
 | 
				
			||||||
 | 
					use Illuminate\Foundation\Testing\RefreshDatabase;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ExampleTest extends TestCase
 | 
					class ExampleTest extends TestCase
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user