spyrosjeva

Experience

3,040

0 Best Reply Awards

  • Member Since 11 Months Ago
  • 25 Lessons Completed
  • 0 Favorites

16th September, 2017

spyrosjeva left a reply on Update Laravel Using Bitbucket Pipelines • 1 week ago

@martinbean yeap you where right is not possible after all so i need to do it manually thanks for the info, also is there a way or a server setup where i can update multiple apps at the same time, lets say i have updated or extended my base with more features (tested and ready) and i want to push this to all my multiple productions, is there a way?

14th September, 2017

spyrosjeva left a reply on Update Laravel Using Bitbucket Pipelines • 1 week ago

@martinbean Yeap im aware that you can't do that for major updates like 5.4 to 5.5 but how about the minor upgrades (5.5.1,5.5.2 and on) never had any problems with them and they are also include bug fixes.

@bashy Have a look

(One Drive Link) https://1drv.ms/i/s!AqyM1_NYKkPlhQNvbB_E8SWepHmn

spyrosjeva started a new conversation Update Laravel Using Bitbucket Pipelines • 1 week ago

I was testing the functionality of bibuckets pipelines and im looking to do the following, install the default enviroment and on every commit/push have laravel update itself with the composer update command and then if no error come from the test's upload to the production server with git ftp.

The problem im facing is with composer update, even if there is no new downloads from it afther its done git ftp gives me a message of "dirty repocitory" meaning that there are uncommited changes.

Is there a way to configure pipelines to commit and push those changes from the update?

Here is my .yml file

image: php:7.1.1
pipelines:
  default:
    - step:
        script:
          - apt-get update && apt-get install -y unzip
          - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
          - composer -V
          - composer install
          - composer update
          - apt-get -qq install git-ftp
          - git ftp init --user $ftp_username --passwd $ftp_password ftp://****/****/

28th August, 2017

spyrosjeva left a reply on What Is The Actual Role Of Forge • 3 weeks ago

@lars6 how is your experience with digital ocean, i see a lot of negative reviews on there facebook page.

spyrosjeva started a new conversation What Is The Actual Role Of Forge • 3 weeks ago

Hello there guys i was looking on laravel forge and i must say im quite exited with the level of simplicity. But all this got me quite sceptical about the actual role of forge.

Can it be used as a production sever or just development and test or demo displaying, i did some research on the security it provides and based on the little information i found it seems that the default layer is pretty basic? Dont know since im not a server administration myself so if there is any info on this i would greatly appreciate if you include it on your answer.

3rd June, 2017

spyrosjeva started a new conversation Remove Unused Css On One Page. • 3 months ago

Hello guys im trying to get the csspurify plugin to work with laravel mix and im trying to remove the unused css on one file only. So far is not working.

const { mix } = require('laravel-mix');

mix.webpackConfig({
    resolve: {
        plugins: [

            new PurifyCSSPlugin({
                // Give paths to parse for rules. These should be absolute!
                paths: glob.sync(path.join(__dirname, 'resources/views/index.blade.php')),
            })
        ]
    }
});


mix.styles([
    'public/assets/css/style.css',
    'public/assets/vendor/font-awesome/css/font-awesome.min.css',
    'public/assets/vendor/owlcarousel/assets/owl.carousel.min.css',
    'public/assets/vendor/owlcarousel/assets/owl.theme.default.min.css',
    'public/assets/css/vendor/settings.css',
    'public/assets/css/vendor/prettyPhoto.css',
], 'public/css/all2.css');

spyrosjeva left a reply on Implement Purify Css • 3 months ago

Could you please share with the community how to did it?

31st May, 2017

spyrosjeva left a reply on Build A Sidebar With Custom Class • 3 months ago

Nope still trying to find what im doing wrong, btw for the module generation i use this package https://github.com/nWidart/laravel-modules.

When i try to do dd() it returns an empty array but if i try to get data from the root app and not from the packages it returns all the data just fine.

28th May, 2017

spyrosjeva left a reply on Build A Sidebar With Custom Class • 3 months ago

I gave it a try and changed the namespaces the folder and the file but still nothing...

27th May, 2017

spyrosjeva started a new conversation Build A Sidebar With Custom Class • 3 months ago

Im experimenting on a modular app and im looking to make a custom sidebar where it will display options from every package i will add on a specific folder.

Here is my custom class


```class Sidebar
```{
```    public $data = [];

```    public function __construct() {}

```   public function items($item)
```   {
```      $this->data[] = $item;
```    }

```    public function fetch(){

```        return $this->data;

```    }



```}

And the controller which will add the data

```namespace Modules\Pages\Http\Controllers\admin;

```use Illuminate\Http\Request;
```use Illuminate\Http\Response;
```use Illuminate\Routing\Controller;
```use App\Classes\Sidebar;

```class Admin\SidebarController extends Controller
```{

```    public function __construct(){

```    $items = array(
```        'name'=>'test',
```        'url'=> route('pages.index'),
```       'subitem' => array(
```           'name'=>'subtest',
```            'url'=> route('pages.index')
```        );
```    );

```    $sidebar = new sidebar;
```    $sidebar->items($items);

```    }


```}


To pass data on the view im using a viewcomposer which targets the sidebar.blade.php

```namespace App\Http\ViewComposers;

```use Illuminate\View\View;
```use App\Repositories\UserRepository;
```use App\Classes\Sidebar;

```class SidebarComposer
```{
 ```   public function compose(View $view)
 ```   {

```        $sidebar = new sidebar;
```        dd($sidebar->fetch());
```        $view->with('items', $items);
```    }
```}


3rd May, 2017

spyrosjeva left a reply on Problem With Edit Method (Resource Model Binding) • 4 months ago

Never mind the val $lang was overitten by another

spyrosjeva left a reply on Problem With Edit Method (Resource Model Binding) • 4 months ago

The languages is actually the name of the binded model, and the above format seems to be working with destroy which returns a single record.

To get the results for the list view im using get()

2nd May, 2017

spyrosjeva started a new conversation Problem With Edit Method (Resource Model Binding) • 4 months ago

Hello guys im using the new model binding on resource controllers and i was wondering why the edit method returns a collection instead of a single record.

routes.php

//languages
Route::resource('language', 'admin\settings\language\LanguageController');

Controller

    public function edit(languages $language)
    {
        
        return view('admin/settings/languages/edit')->with('lang',$language);
    }

list view

                            @foreach($lang as $row)
                            <tr>
                                <td><center>{{ $row->title }}</center></td>
                                <td><center>{{ $row->code }}</center></td>
                                <td>
                                    <div class="pull-left">
                                        <form action="{{ route('language.edit',$row->id) }}">
                                            {{ csrf_field() }} {{ method_field('PUT') }}
                                            <button type="submit" class="btn btn-success">ΕΠΕΞΕΡΓΑΣΙΑ</button>
                                        </form>
                                    </div>
                                    <div class="pull-right">
                                        <button type="button" class="btn btn-danger" data-toggle="modal" href="#lang_{{ $row->id }}">ΔΙΑΓΡΑΦΗ</button>
                                    </div>
                                </td>
                                <td><center>{{ $row->sort_order }}</center></td>

                                @if($row->status == 1)
                                    <td><center>Ενεργοποιημένο</center></td>
                                @else
                                    <td><center>Απεργοποιημένο</center></td>
                                @endif

                                @if($row->current == 1)
                                    <td><center>Ναι</center></td>
                                @else
                                    <td><center></center></td>
                                @endif

                            </tr>
                            @endforeach 

6th April, 2017

spyrosjeva started a new conversation Push Additional Data On Global Variable. • 5 months ago

Hello there guys im looking for a way to push more data on a shared global variable, without having it overwritten. The main goal is to add items on a sidebar like this

@foreach($item_list as $item)

  • {{ $item->name }} </[email protected]

  • 17th February, 2017

    spyrosjeva started a new conversation Trying To Understand Mix And Webpack As A Begginer • 7 months ago

    Hello there guys i was looking for ways to increase performance on my laravel app and i heard some good things on webpack and since laravel have made a turn on it with its new version i would like to ask about how it is distrubuting javascript or even sass.

    As i saw in some posts people say that webpack can bring javascript forward on demand like an app.js 32K on one page and on other 23k. Is this correct? If it is how can i do that with mix?

    11th December, 2016

    spyrosjeva left a reply on Module Options On Interface • 9 months ago

    Thanks for the answers guys that's a lot of help :)

    9th December, 2016

    spyrosjeva started a new conversation Module Options On Interface • 9 months ago

    Hello three guys I'm a junior web developer and I have started experimenting with laravel for my upcoming projects

    I have discovered that laravel can use modules and I looking for information on how can I add let's say more options on my admin panel like custom sections for my modules (settings, menus, functions) like joomla is doing via xml approach. All that to be added on module installation/registration.

    Edit Your Profile
    Update

    Want to change your profile photo? We pull from gravatar.com.