thesogafoi

Experience

12,430

0 Best Reply Awards

  • Member Since 9 Months Ago
  • 115 Lessons Completed
  • 0 Favorites

19th January, 2018

thesogafoi left a reply on Appending URL Param For Paging And Searching • 8 months ago

{{ $users->appends(request()->query())->links()  }}

why don't use it ? its work for me

16th January, 2018

thesogafoi left a reply on Laravel Homestead , WIndwos , Php And Composer Installation • 9 months ago

@bashy

so thx man which one is better you think ?

thesogafoi started a new conversation Laravel Homestead , WIndwos , Php And Composer Installation • 9 months ago

Hey Guys I installed Homestead and Use VM For my local host and every things 

good But i have A little Problem

I use Visual studio Code and i install some extension on it like laravel snippet or PHP Intelephense extension but it required PHP installation on Your Windows Not on VM because i change my Code in cloned File ok ? that mean i open my located windows to change my code and i use vm for local host

and composer , php , mysql installed on my vm and i cannot use Visual Code extensions on my windows Cuz they installed on my vm

how can i fixed

Note : i will not install *AMP applications

15th January, 2018

thesogafoi left a reply on Laravel Scheduling Run One Time • 9 months ago

Thank you A lot @Snapey

thesogafoi left a reply on Laravel Scheduling Run One Time • 9 months ago

But How @snapey

thesogafoi left a reply on Laravel Scheduling Run One Time • 9 months ago

@snapey

I get it

in your article you run schedule in site but in local how can i do this ?

i use Homestead On windows

thesogafoi left a reply on Laravel Scheduling Run One Time • 9 months ago

@snapey thx man

  1. can i do scheduling in local host Or not ?
  2. if we should cron Job then what is this methods :

then this functions donot nothing for us

thesogafoi left a reply on Laravel Scheduling Run One Time • 9 months ago

How Can i do this ?

* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1

with this ?

thesogafoi started a new conversation Laravel Scheduling Run One Time • 9 months ago

Hey Guys i used Scheduling in laravel and do something like this in kernal

$schedule->command('mail:daily')->everyMinute();

and i created mail:daily command and when i run schedule :

php artisan schedule:run
Running scheduled command: '/usr/bin/php7.2' 'artisan' mail:daily > '/dev/null' 2>&1

it done and email sent but a problem i have ,

it send me email for one time, it is Not run mail:daily over and over in every minute why So what can i do

12th January, 2018

thesogafoi started a new conversation Service Provider , Service Container Example Tutorial • 9 months ago

Hey Guys is there any Service container tutorial ? i know about this technology in theory but i really want take my hand dirty For them , i will Create service Container and register it in service Provider and use it in my application But i don't know how i need Create it with an example if you have good tutorial for it plz tell me thx

11th January, 2018

thesogafoi left a reply on Homestead , Graphical Ubuntu • 9 months ago

no , Homestead have Ubuntu , and i want open Homestead's Ubuntu in my virtual Box like this

[[https://www.linuxinsider.com/images/article_images/72553_990x560.jpg]]

thesogafoi left a reply on Homestead , Graphical Ubuntu • 9 months ago

Yes man i know ll of that But in homestead package i saw Ubuntu is exist Now i want run my linux in virtual machine on my windows did you get it ?

thesogafoi started a new conversation Homestead , Graphical Ubuntu • 9 months ago

can I use graphical Ubuntu with virtual machine when i run homestead on windows ? i Mean can i run Homestead Ubuntu Like linux image in virtual machine ?

thesogafoi left a reply on Is Homestead Can Be Use As Linux Os • 9 months ago

@bobbybouwmann Ok i already installed it and this package was for visual studio code but now when im use code . nothing happen

the bash know my code command but not happen when i use it

thesogafoi left a reply on Is Homestead Can Be Use As Linux Os • 9 months ago

@bobbybouwmann

[email protected]:~/Code$ sudo apt-get install code.deb Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package code.deb E: Couldn't find any package by glob 'code.deb' E: Couldn't find any package by regex 'code.deb'

i did before but get error my package renamed to code.deb

thesogafoi started a new conversation Is Homestead Can Be Use As Linux Os • 9 months ago

hey guys i use homestead and i have question can i install linux application on homestead ? if no why ? homestead is virtual of linux and why i cannot do this

if yes How i can install thx

10th January, 2018

thesogafoi left a reply on Homestead And Terminal • 9 months ago

@tykus

ok Really thx for answer

thesogafoi left a reply on Homestead And Terminal • 9 months ago

@tykus Oh Yes Any way Thx

Can i ask you another things ?

can i Open My directory Code in SSH ( virtual machine ) with my IDE or i just access to my cloned folder ? ?

thesogafoi left a reply on Homestead And Terminal • 9 months ago

I already did and i go To ssh with Vagrant ssh not homestead

But Another things want to ask

are you installed *AMP on Your Mac ? and are them make slower your PC ?

thesogafoi left a reply on Homestead And Terminal • 9 months ago

  1. i use Visual Studio Code ,

  2. i use git bash on my windows

thesogafoi left a reply on Homestead And Terminal • 9 months ago

@tykus

No Homestead Not found there

bash: homestead: command not found

thesogafoi started a new conversation Homestead And Terminal • 9 months ago

Hey Guys i Use Homestead for My Projects

and my real Computer dont know About php , laravel , php artisan and composer because homestead have all of this tools

and i open the project in my pc that cloned to virtual host

and i have problem when i want to use terminal in my ide , terminal don't know about php artisan or composer what can i do ?

should install *AMP or i can open my virtual host directory in my code editor ?

thesogafoi left a reply on Group Eloquent • 9 months ago

@BezhanSalleh Any way thx for answer

9th January, 2018

thesogafoi left a reply on Group Eloquent • 9 months ago

@bezhansalleh i did it but give me same error

i dont know why when i change the function to this

public static function archives(){
        return Post::selectRaw(' count(*)  published ,year(created_at)      
             year, monthname(created_at) month')
            ->groupBy('year');
    }

and then use view composer every things work and i don't know how this fixed

thesogafoi started a new conversation Group Eloquent • 9 months ago

hey Guys i try to Group my Posts By Year and month but get me error i searched a lot but i cannot fix this can U help me

public function scopeArchives($query){
        $query->selectRaw(' count(*)  published ,year(created_at) year, monthname(created_at) month')
            ->groupBy('year');
    }

And this is My Controller COde


 $archives = Post::latest()->archives()->get();

and this is my error

SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'homestead.posts.created_at' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (SQL: select count(*) published ,year(created_at) year, monthname(created_at) month from `posts` group by `year` order by `created_at` desc)


6th January, 2018

thesogafoi left a reply on How To Retrieve Soft Deleted Models • 9 months ago

the first thing you are in Your Own model and you have not to Use App\Model you can use Model

Model::withTrashed()->where('id' , $id)->get()

is true did you get the $id in your function ?

let echo this and see the $id is exist or not

thesogafoi started a new conversation What Difference Between Cursor And All In Laravel • 9 months ago

my question in clear i think :D

27th December, 2017

thesogafoi left a reply on Opening Current Hoemestead Project Into PHP Storm • 9 months ago

@bobbybouwmann Thx Buddy iTs Done

26th December, 2017

thesogafoi started a new conversation Opening Current Hoemestead Project Into PHP Storm • 9 months ago

hey i used homestead For creating project in bash

for example my project name is video.app and i am in video file in homstead with bash

then how can i open php storm with video project in bash ?

Edit Your Profile
Update

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