lundi 1 juillet 2019

Method Illuminate\Database\Eloquent\Collection::appends does not exist

this is what i use

 

and this is my controller

<?php

namespace App\Http\Controllers\Auth;

use Auth;
use App\Models\Joburi;
use App\Models\SkillsEmployee;
use App\Models\ProfileEmployee;
use App\Models\ProfileEmployer;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class JoburiController extends Controller
{
    public function __construct()
    {
        $this->middleware('auth');
    }
    public function index()
    {
        {
            $joburi = Joburi::where('activ', 1)->limit(15)->get();
            $skill = SkillsEmployee::all();
            $employerimage = ProfileEmployer::where('uid', Auth::user()->id)->first();
            $profileimage = ProfileEmployee::where('uid', Auth::user()->id)->first();
            return view('joburiactive', compact('joburi', 'skill', 'employerimage', 'profileimage'));
        }
    }

in other controller works with no problem

does anyone know why do i get this error?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2JjV8Cp
via IFTTT

Aucun commentaire:

Enregistrer un commentaire