This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Modules\Api\Services\Profile; | |
use Modules\Users\Entities\User; | |
use Modules\Users\Entities\UserPortfolio; | |
use Modules\Users\Entities\UserPortfolioImage; | |
class ProfilePortfolioImageSaverService |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.... | |
public function updateNotificationSettings(User $user, $notification_id, $method) | |
{ | |
$relations = $user->notification_settings(); | |
if( method_exists ($relations , $method)) { | |
$relations->$method($notification_id); | |
} | |
return false; | |
} | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Client | |
//Modules/Clients/Database/factories | |
... | |
/** @var \Illuminate\Database\Eloquent\Factory $factory */ | |
$factory->define(Client::class, function (Faker $faker) { | |
return [ | |
//'user_id' => factory(Modules\Users\Entities\User::class)->create()->id, | |
'about' => $faker->text(500), | |
]; | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Modules\Users\Database\Seeders; | |
use Faker\Generator; | |
use Illuminate\Database\Seeder; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Support\Collection; | |
use Modules\Billing\Entities\BankForm; | |
use Modules\Clients\Entities\Client; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function run() | |
{ | |
Model::unguard(); | |
$start = now(); | |
$this->command->info('Custom Users Seeder Started...'); | |
foreach ($this->list as $item) { | |
factory(User::class, 1)->create([ | |
'email' => $item['email'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Modules\Users\Database\Seeders; | |
use Faker\Generator; | |
use Illuminate\Database\Seeder; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Support\Collection; | |
use Modules\Billing\Entities\BankForm; | |
use Modules\Clients\Entities\Client; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Modules\Api\Tests\Feature; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
use Modules\Gallery\Entities\Portfolio; | |
use Modules\Professionals\Entities\Professional; | |
use Modules\Professionals\Entities\ProfessionalPortfolio; | |
use Modules\Users\Entities\User; | |
use Tests\TestCase; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Modules\Api\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Routing\Controller; | |
use Modules\Api\Http\Resources\ProjectEvaluationResource; | |
use Modules\Api\Repositories\ProjectEvaluationRepository; | |
class ProjectEvaluationController extends Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
'generator' => [ | |
... | |
'resource' => 'Http/Resources', | |
], | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Modules\Users\Emails; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Mail\Mailable; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Modules\Users\Entities\User; |
NewerOlder