meteguerlek

Experience

1,270

0 Best Reply Awards

  • Member Since 10 Months Ago
  • 11 Lessons Completed
  • 0 Favorites

10th August, 2018

meteguerlek started a new conversation Relationships • 2 months ago

Hi, my tables:

users

  • id

orders

  • id

steps -id

items

  • id
  • step_id

user_step_items

  • id
  • user_id
  • order_id
  • step_id
  • item_id

I wanted the steps which user has. Maybe i need other table? Like:

order_step

  • order_id
  • step_id

8th August, 2018

meteguerlek left a reply on Set Brackets After From With Eloquent • 2 months ago

OK we dont have method for this

meteguerlek left a reply on Set Brackets After From With Eloquent • 2 months ago

I wanted to know if it works without raw

meteguerlek started a new conversation Set Brackets After From With Eloquent • 2 months ago

select from (
    union...
)
users

11th May, 2018

meteguerlek started a new conversation Controller Constructor Not Working • 5 months ago

// Route

Route::get('/dashboard', '[email protected]');

//Controller

namespace App\Http\Controllers;

use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Support\Facades\Auth;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests;

    /**
     * @var User
     */
    public $user;

    public function __construct()
    {
        $this->user = Auth::user();
    }
}

// DashboardController

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class DashboardController extends Controller
{
    public function index()
    {
       $this->user->id; // not working
    }
}


‚Äč```
Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.