Skip to main content

Posts

10 Eloquent Features That You Might Not Know About

With all the features that are out-of-the-box available in Laravel it is hard to know them all. Some features are not even properly documented. In this article I will be giving you ten Eloquent features that you might not know about. 1. Custom timestamp column names By default Laravel models have a   created_at   and an   updated_at   timestamp. You can overwrite these column names by defining a constant variable in your model. If your model uses soft deletes you can overwrite the   deleted_at   column name aswell. class User extends Model { const CREATED_AT = 'created'; const UPDATED_AT = 'last_update'; const DELETED_AT = 'removed'; } 2. The exists property The exists property tells whether the object exists in the database or not. When you create a new model instance the exists property will be set to false. Once your model is saved or retrieved from the database the exists property will be set to true. $user = new User; $user->name = 'Geor...

Bitcoin The Reasons That Explain The Rally And The Setback That Is Coming

Bitcoin reaches $28,000 amidst widespread euphoria, but the setback after the rally is on its way The bitcoin price shot up in December by about 40% and is moving slightly above $27,000. In the middle of the month, it already exceeded 23,000 dollars and now it has reached 28,000 dollars, a new historical maximum. In this way, the bitcoin signs its bad bullish month since June 2019, which also occurs at the margin of other cryptocurrencies. Thus, the Litecoin barely got to 18% in the week and 1.75% for Ethereum. We are in a new environment where bitcoin is the maim goal. As is often the case after such vertical advances, now we have to wait for the setback to come. Its amount will test the strength of the market. In addition, Bitcoin faces scrutiny from regulators and the reception it will receive from the Biden Administration. There are several reasons for the revival of Bitcoin: the arrival of institutional money, the interest of companies like Paypal or Square, protection against inf...