Please How can i access to the token for this emails ?
what am i doing wrong?
what do you mean?
Where does this come from?
this is what i am trying to archive am i doing it wrong?
any ideas on this error?
I added the Macro below, but getting an error where have i made the mistake?
not in a databases in a file json
Please How can i access to the token for this emails ?
Preferred location tamil nadu
Is it a paid or free partnership
Paid

hello experts, when i try to search like this i get error

then when i change to ursb::all() i get error below yet the field is there in the database and also in the model fillable, where have i gone wrong?

Hi gurus, i am failing to get the order By to work with the error
BadMethodCallException
Method IlluminateDatabaseEloquentCollection::orderBy does not exist.
what am i doing wrong? please help me
BadMethodCallException
Method IlluminateDatabaseEloquentCollection::orderBy does not exist.
what am i doing wrong? please help me
try replacing “$this->sort” with “desc” meaing descending. whats the output?
$this->search is empty.
how do i fix?
Where are you getting the value from?
what do you mean?
i think he is asking about the $this->sort and stuff?
BadMethodCallException
Method IlluminateDatabaseEloquentCollection::orderBy does not exist.
$this->search
Where does this come from?
Where does this come from?
from the front end, i am trying to search for names from the DB
{
return view(‘livewire.request-index’,
[
‘series’ => Ursb::all(‘ursbname’, $this->search)->orderBy(‘id’, $this->sort)->paginate($this->perPage)] );
}
{
return view(‘livewire.request-index’,
[
‘series’ => Ursb::all(‘ursbname’, $this->search)->orderBy(‘id’, $this->sort)->paginate($this->perPage)] );
}
only thing working is the paginate i can select from the drop down, the search brings error and the sort/orderby
{
return view(‘livewire.request-index’,
[
‘series’ => Ursb::all(‘ursbname’, $this->search)->orderBy(‘id’, $this->sort)->paginate($this->perPage)] );
}
even if i do it like this
public function render()
{
return view(‘livewire.request-index’,
[ ‘series’ => Ursb::search(‘ursbname’, $this->search)->orderBy(‘id’, $this->sort)->paginate($this->perPage)] );
}
{
return view(‘livewire.request-index’,
[
‘series’ => Ursb::all(‘ursbname’, $this->search)->orderBy(‘id’, $this->sort)->paginate($this->perPage)] );
}
do dd($this->search);
To see what the frontend is sending to you
public function render()
{
return view(‘livewire.request-index’,
[ ‘series’ => Ursb::search(‘ursbname’, $this->search)->orderBy(‘id’, $this->sort)->paginate($this->perPage)] );
}
this is what i am trying to archive am i doing it wrong?


any ideas on this error?
BadMethodCallException
Call to undefined method IlluminateDatabaseEloquentBuilder::Search()
Use where instead of search
the table is empty when i put where
public $search ;
return view(‘livewire.request-index’,
[ ‘series’ => Ursb::where(‘ursbname’, $this->search)
->orderBy(‘ursb_status’, $this->sort)
->paginate($this->perPage)
,
]);
public $search ;
return view(‘livewire.request-index’,
[ ‘series’ => Ursb::where(‘ursbname’, $this->search)
->orderBy(‘ursb_status’, $this->sort)
->paginate($this->perPage)
,
]);
whereLike(‘ursbname’, ‘%’.$this->search.’%’)

I added the Macro below, but getting an error where have i made the mistake?
Builder::macro(‘search’, function (string $attribute, string $search) {
return $search ? $this->where($attribute, ‘LIKE’, “%{$search}%”) : $this;
});