RUN set -ex \
&& apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS imagemagick-dev libtool \
&& export CFLAGS="$PHP_CFLAGS" CPPFLAGS="$PHP_CPPFLAGS" LDFLAGS="$PHP_LDFLAGS" \
&& pecl install imagick-3.4.3 \
&& docker-php-ext-enable imagick \
&& apk add --no-cache --virtual .imagick-runtime-deps imagemagick \
&& apk del .phpize-deps
This file contains 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 App\Providers; | |
use Illuminate\Support\Collection; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
This file contains 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 App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class AdminController extends Controller | |
{ | |
public function imageFillToSquare(Request $request){ |
This file contains 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
// FIXME: MOHAMMAD ASHRAFUDDIN FERDOUSI: THIS NUXT URL IS HARDCODED BUT IT'S NOT GUARANTEED THAT EVEN PHONE'S APP WILL USE THE SAME URL! | |
const BASE_URL = process.env.BASE_URL || 'https://larecom.com:4430'; | |
const API_BASE_URL = 'https://api.laraecom.com/api/v1/'; | |
const HOST_DOCKER_INTERNAL = 'laraecom_backend_local_env_nginx/api/v1'; | |
export default { | |
generate: { | |
fallback: true | |
}, |
This file contains 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 | |
<?php | |
namespace App\Http\Controllers\Web\Front\Components; | |
use App\Http\Controllers\Controller; | |
use App\Services\AboutUsService; | |
use App\Services\Contracts\AboutUsContract; | |
use App\Services\Contracts\IndexPageContract; |
This file contains 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 App\Http\Controllers\Web\Front; | |
use App\Http\Controllers\Controller; | |
use App\Repositories\AboutUsRepository; | |
use App\Repositories\BannerRepository; | |
use App\Repositories\ClientCategoryRepository; | |
use App\Repositories\ClientRepository; | |
use App\Repositories\CompanyInfoRepository; |
This file contains 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 Mysql; | |
/** | |
* Class MysqlConnector. | |
* Wrapper class of mysqli. | |
*/ | |
class MySqlConnector { | |
private $connection; |
This file contains 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
def create | |
redirect_to page.root_url unless current_user_session.nil? | |
@forgot_password = Auth::Tableless::ForgotPassword.new(auth_permitted_params.tableless_forgot_password) | |
if @forgot_password.validate(auth_permitted_params.tableless_forgot_password) | |
forgot_password_service = Auth::ForgotPasswordService.new | |
unless forgot_password_service.account_holder?(auth_permitted_params.tableless_forgot_password) | |
flash.now[:warning] = t('auth.forgot_password.create.warning_message') | |
render :index |