thesogafoi

thesogafoi

Member Since 1 Year Ago

Experience Points 16,690
Experience Level 4

3,310 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 155
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

14 Apr
2 months ago

thesogafoi left a reply on Laravel & Desktop Application

Use laravel with Electron js

thesogafoi left a reply on I Have Problem With Pdo_sqlite

@SIANGBOON - /etc/php/7.3/cli/php.ini its found here but turned on pdo_sqlite but still not found

09 Apr
2 months ago

thesogafoi left a reply on I Have Problem With Pdo_sqlite

@CRONIX - i do it in my php.ini that located in etc/php/7.3/cli but not work

thesogafoi left a reply on I Have Problem With Pdo_sqlite

@SERGIU17 - I restart my valet Yes , it's so confusing :D‌

08 Apr
2 months ago

thesogafoi left a reply on I Have Problem With Pdo_sqlite

@SERGIU17 - i found i use php7.3 and i edit php.ini in etc/php/7.3/cli and enabled extension=pdo_sqlite And extension=sqlite3

thesogafoi left a reply on I Have Problem With Pdo_sqlite

@SERGIU17 - I Did but it doesnot work

thesogafoi left a reply on I Have Problem With Pdo_sqlite

@MCANGUEIRO - No pdo_sqlite doesnot exist but i install php-sqlite3

how can i install this module

thesogafoi started a new conversation I Have Problem With Pdo_sqlite

Hey guys i am using ubuntu 18.01.1 LTS and i use linuxbrew for install valet on my pc , i use sqlite in my laravel but i get php warning and it doesnot work i install sqlite with brew and apt-get for ubuntu but still fail Here's my warning PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: /usr/lib/php/20180731/pdo_sqlite (/usr/lib/php/20180731/pdo_sqlite: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/pdo_sqlite.so (/usr/lib/php/20180731/pdo_sqlite.so: undefined symbol: php_pdo_unregister_driver)) in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite.so' (tried: /usr/lib/php/20180731/pdo_sqlite.so (/usr/lib/php/20180731/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name), /usr/lib/php/20180731/pdo_sqlite.so.so (/usr/lib/php/20180731/pdo_sqlite.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 PHP Warning: Module 'sqlite3' already loaded in Unknown on line 0 i install php-sqlite and i get SQLite 3.x driver for PDO Wez Furlong in my phpinfo but still not work can u help me ?

07 Jan
5 months ago

thesogafoi left a reply on Sequel Pro Alternatives For Ubuntu

@BUNNYPRO - Its so cool bunny thx

06 Jan
5 months ago

thesogafoi started a new conversation Babel Error Ubuntu

im new in ubuntu , when i switch from windows to ubuntu Got this error

what can i do ? i installed stage-3 "npm install --save-dev @babel/preset-stage-3" and what is exactly stage-3 and what kind of babel we need for vue laravel ? ERROR in ./resources/js/app.js Module build failed: Error: Couldn't find preset "stage-3" relative to directory "/home/thesogafoi"

10 Dec
6 months ago

thesogafoi left a reply on Can I Sort The GroupBy Collection Keys?

i have another idea to do this at first time we use orderBy and then we should get collection of model and then use groupBy Like this :

HomeWork::orderBy('date' , 'desc')->get()->groupBy('date')

27 Nov
6 months ago

thesogafoi started a new conversation Create Custom Artisan Command

hey every one i wanna create something like php artisan make:auth i wanna create artisan commande to create model controller router and ...

and is it possible to use in another my projects ?

thx for your thought

11 Nov
7 months ago

thesogafoi left a reply on No Connection Could Be Made Because The Target Machine Actively Refused It. [tcp://127.0.0.1:6379] On Localhost

Hey you can use redis-server --port "Port number that you used in default configuration in database.php" You can do like this :

redis-server --port 6037

19 Jan
1 year ago

thesogafoi left a reply on Appending URL Param For Paging And Searching

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

why don't use it ? its work for me

16 Jan
1 year ago

thesogafoi left a reply on Laravel Homestead , WIndwos , Php And Composer Installation

@bashy

so thx man which one is better you think ?

thesogafoi started a new conversation Laravel Homestead , WIndwos , Php And Composer Installation

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

15 Jan
1 year ago

thesogafoi left a reply on Laravel Scheduling Run One Time

@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

@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

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

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

12 Jan
1 year ago

thesogafoi started a new conversation Service Provider , Service Container Example Tutorial

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

11 Jan
1 year ago

thesogafoi left a reply on Homestead , Graphical Ubuntu

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

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

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

@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

@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

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

10 Jan
1 year ago

thesogafoi left a reply on Homestead And Terminal

@tykus

ok Really thx for answer

thesogafoi left a reply on Homestead And Terminal

@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

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

  1. i use Visual Studio Code ,

  2. i use git bash on my windows

thesogafoi left a reply on Homestead And Terminal

@tykus

No Homestead Not found there

bash: homestead: command not found

thesogafoi started a new conversation Homestead And Terminal

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

@BezhanSalleh Any way thx for answer

09 Jan
1 year ago

thesogafoi left a reply on Group Eloquent

@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

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)


06 Jan
1 year ago

thesogafoi left a reply on How To Retrieve Soft Deleted Models

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

my question in clear i think :D

27 Dec
1 year ago
26 Dec
1 year ago

thesogafoi started a new conversation Opening Current Hoemestead Project Into PHP Storm

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 ?