Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Migration on group and namespace
Post: RE: Migration on group and namespace

It is not very convenient to customize the default spark file in the root of the site in the case of using modules. But that's just my opinion. Therefore, I chose the option of adding custom command ...
1,571 Views
9 Replies
10-19-2021, 03:18 AM
ARAmiss
    Thread: Migration on group and namespace
Post: RE: Migration on group and namespace

InsiteFX Wrote: (07-08-2021, 01:22 AM) -- If you want to know how to do this download Boilerplate by user @agungsugiarto Look at the folder Commands  InstallCommand.php and PublishCommand.php ...
1,571 Views
9 Replies
10-18-2021, 10:51 PM
ARAmiss
    Thread: Migrations inside composer scripts
Post: RE: Migrations inside composer scripts

Thank you. Despite it is not very convenient to edit the spark file on each project, apparently this is the only option for now. [hr] What about getting the root folder of the project from the compos...
905 Views
5 Replies
10-17-2021, 06:50 AM
ARAmiss
    Thread: Migrations inside composer scripts
Post: RE: Migrations inside composer scripts

About spark. There is FCPATH definition inside it: Code: -- // Path to the front controller define('FCPATH', __DIR__ . DIRECTORY_SEPARATOR . 'public' . DIRECTORY_SEPARATOR); -- What if my publi...
905 Views
5 Replies
10-17-2021, 12:39 AM
ARAmiss
    Thread: Migrations inside composer scripts
Post: RE: Migrations inside composer scripts

I would like auto start migrations when "composer require ..." and "composer update". Not manual. The composer allows to do this. For example: https://getcomposer.org/doc/articles/scripts.md#executi...
905 Views
5 Replies
10-16-2021, 03:11 PM
ARAmiss
    Thread: Force download of image
Post: RE: Force download of image

pippuccio76 use base_url, so it seems files stored in public folder, it is enough for him to give away a picture using a web server. Not build response from img.
1,304 Views
8 Replies
10-15-2021, 01:11 AM
ARAmiss
    Thread: Force download of image
Post: RE: Force download of image

What's your link look like in html page source (in browser)?
1,304 Views
8 Replies
10-14-2021, 04:53 AM
ARAmiss
    Thread: Dynamically changing supported languages
Post: RE: Dynamically changing supported languages

config("APP")->supportedLocales = [any lang array you need];
2,407 Views
16 Replies
10-14-2021, 04:43 AM
ARAmiss
    Thread: Force download of image
Post: RE: Force download of image

Add "download" attribute to the link.
1,304 Views
8 Replies
10-14-2021, 04:41 AM
ARAmiss
    Thread: Migrations inside composer scripts
Post: Migrations inside composer scripts

Hello. I have a composer package. It's like small cms (with db tables). My target is to start migrations after package install/update from composer. In this case I use composer scripts. But there ar...
905 Views
5 Replies
10-14-2021, 04:29 AM
ARAmiss
    Thread: subdomain is lost on redirect()->to()
Post: RE: subdomain is lost on redirect()->to()

You can define baseURL property in App config (Config/App) like this: PHP Code: --     public function __construct()     {         parent::__construct();         $this->baseURL = 'https://' . $...
2,733 Views
5 Replies
05-18-2020, 04:33 AM
ARAmiss
    Thread: lang() third parameter: bug or feature?
Post: lang() third parameter: bug or feature?

Hello. If i use this once: PHP Code: -- lang('some_file.some_string', [], 'fr'); -- This will result all next: PHP Code: -- lang('some_another_file.some_another_string'); -- will show last us...
1,053 Views
1 Replies
01-04-2020, 07:07 AM
ARAmiss
    Thread: Redirect to another controller
Post: Redirect to another controller

Hello. There is my custom filter: PHP Code: --
801 Views
0 Replies
12-21-2019, 03:32 AM
ARAmiss
    Thread: Subdomains based localization
Post: RE: Subdomains based localization

The simplest way to define language locale is to set it in BaseController: Code: -- $domain = $_SERVER['HTTP_HOST']; $domain_paths = explode('.', $domain); if (count($domain_paths) == 3) ...
1,182 Views
1 Replies
12-12-2019, 02:12 AM
ARAmiss
    Thread: Subdomains based localization
Post: Subdomains based localization

Hello. I have main domain.com and its subdomains en.domain.com, fr.domain.com, de.domain.com and others. I need to build localization versions of main domain on subdomains. How can i do it? There are...
1,182 Views
1 Replies
12-11-2019, 09:52 AM
ARAmiss

Theme © iAndrew 2016 - Forum software by © MyBB