Skip to content

Instantly share code, notes, and snippets.

@didotsonev
didotsonev / gist:cfed7de4c67ea9a3e2d1ff9cd6a1d872
Created May 4, 2021 12:36
homestead: Package 'libssl1.0-dev' has no installation candidate
vagrant destroy && vagrant up
homestead: Are you sure you want to destroy the 'homestead' VM? [y/N] y
==> homestead: Destroying VM and associated drives...
==> homestead: Pruning invalid NFS exports. Administrator privileges will be required...
Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Importing base box 'laravel/homestead'...
==> homestead: Matching MAC address for NAT networking...
==> homestead: Checking if box 'laravel/homestead' version '11.1.0' is up to date...
==> homestead: Setting the name of the VM: homestead
==> homestead: Clearing any previously set network interfaces...
@didotsonev
didotsonev / Comapny.php
Created July 9, 2019 14:39
pictures without project, how to get them in index.blade.php?
public function user()
{
return $this->belongsTo('App\Models\User');
}
public function projects()
{
return $this->hasMany('App\Models\Project');
}