skeith22

Web Developer at HYBrain Development Corporation

Experience

3,600

0 Best Reply Awards

  • Member Since 2 Months Ago
  • 34 Lessons Completed
  • 0 Favorites

22nd August, 2017

skeith22 started a new conversation Apache2 Cannot Remove Index.php In Mozilla Firefox Even With Mod_rewrite Enabled • 1 month ago

does anyone how to fix this error? I have enabled the mod_rewrite in apache2 and added AllowOverride All in my vhost.

it works normally on Google Chrome but Mozilla Firefox doesn't remove the index.php

4th August, 2017

skeith22 left a reply on Where Between In Query Builder Using Date Values Is Not Working As Expected. • 1 month ago

Nevermind guys I found the answer I just needed to add

->toDateTimeString():

skeith22 started a new conversation Where Between In Query Builder Is Not Working As Expected. • 1 month ago

I'm trying to get the data between 2 dates.

and this code returns 0 results

return Model::whereBetween('created_at', [$this->carbon->startOfWeek(), $this->carbon->endOfWeek()])->get();

this is the query statement it creates when I use toSql();

select * table where created_at between ? and ?

but this query works

return $this->appointment->whereRaw('`created_at` between "' . $this->carbon->startOfWeek() . '" and "' . $this->carbon->endOfWeek() . '"')->get();

I don't get why the first one doesn't work but doing whereRaw works but they have the same query statement.

is this a bug?

31st July, 2017

skeith22 left a reply on Why Storage Class Doesn't Have A Storage() Helper Function ITS A NEED!! :D • 1 month ago

@jlrdw thanks for the reply I already found the solution for it.

26th July, 2017

skeith22 left a reply on How Do I Get All Users With Roles Where Role = 'admin' Using Eloquent Along With Entrust? • 1 month ago

This is the answer

User::whereHas('roles', function ($query) {
$query->where('id', 1);
});

17th July, 2017

skeith22 left a reply on Why Storage Class Doesn't Have A Storage() Helper Function ITS A NEED!! :D • 2 months ago

@Snapey hmmm..let me see I'll try again using the asset() helper.

but Storage::url() clearly goes with using the

request()->picture->store('public/your_folder');

or

request()->image->store('public/your_folder');

or

request()->photo->store('public/your_folder');

15th July, 2017

skeith22 left a reply on Why Storage Class Doesn't Have A Storage() Helper Function ITS A NEED!! :D • 2 months ago

@Snapey the url for you to display it on the view.

skeith22 started a new conversation Why Storage Class Doesn't Have A Storage() Helper Function • 2 months ago

I'm lately creating a project that involves uploading a lot of files and displaying them specially images.

its kinda bothersome that you need to include

use Illuminate\Support\Facades\Storage

in almost all of your controllers cause you need the function

Storage::url()

for you to display images in your view instead of if we have

storage()->url()

we don't need to include

use Illuminate\Support\Facades\Storage

we could just use the storage() helper function in the views to pull files in the Storage

Edit Your Profile
Update

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